LogFAQs > #1043421

LurkerFAQs ( 06.29.2011-09.11.2012 ), Active DB, DB1, DB2, DB3, DB4, DB5, DB6, DB7, DB8, DB9, DB10, DB11, DB12, Clear
Topic List
Page List: 1
TopicI made some spoiler tags for gamefaqs
foolm0ron
04/16/12 10:34:00 PM
#8:


http://userscripts.org/scripts/show/131099

So I felt like programming in javascript for some reason since I've never done it before (and I probably never will again... god damn web development sucks), and I came up with this simple spoiler tag script.

It works on FF with Greasemonkey and I guess might work with Chrome?

Basically it goes on a line-by-line basis and if it sees the spoiler tag it will black out the line unless you mouse over. I didn't do actual tags because I wanted it to kind of work with existing posts, and it only goes line-by-line because that was waaaay easier to do, and we all know the worst spoilers are the ones where they hide the spoiler tag in the line and you don't see it *cough*ayuyu*cough*

Anyways, check it out.

How to use:
You need a star (*) followed by some stuff that contains "spoil" then some more stuff then another star.

Examples:
*spoilers* don't read this until you finished the game, man
*FFVII spoilz* aeris cries
*hey look, it's the reason that sballen won't put in official spoiler tags* YOU LOST THE GAME

--
_foolmo_
'Most people at least try to say something funny. See foolmo's post as an example.' - The Real Truth
... Copied to Clipboard!
Topic List
Page List: 1