HOME | DD

Lucanos โ€” DeviantART - CSSNullify

Published: 2006-10-04 06:37:17 +0000 UTC; Views: 7854; Favourites: 51; Downloads: 14
Redirect to original
Description Your 'style' makes my eyes hurt!TM

DescriptionThis script adds a button to the top of any Journal Entry, allowing the Custom CSS Journal Stylings (now available to Subscribers) to be toggled on and off.
Version History
0.4.2 - Another dA Change, another Script Change.
0.4 - Adjusted to work with new HTML component layout.
0.3 RC2 - Development Only (Not Released).
0.3 RC1 - Development Only (Not Released).
0.2 - Bug preventing use on Special (ie Staff) Journals fixed.
0.1 - Initial Release.
InstructionsIf you are experienced at all this, then just access the version you want from the links above in the "Version History" Section.
  • Get Firefox (If you haven't got it already)
  • Install it, of course.
  • Get the GreaseMonkey Extension
  • Restart Firefox (to Initialise the Extension)
  • Click HERE and select "Install User Script"
  • Enjoy!

Other Browser OptionIf you're not using Firefox what's keeping you?! .
That point aside, you can use a cutdown version of this script as a bookmarklet .
  • Make a Bookmark (for any page, and add it to the "Links"/"Toolbar" section)
  • Right click on the Bookmark and select "Properties"
  • Change the URL to
    javascript:void(document.styleSheets[0].disabled=!document.styleSheets[0].disabled);
  • When you save the change you'll get an alert saying
    "The protocol 'javascript:' does not have a registered program. Do you want to keep this target anyway?"
    select "OK" (this may appear more than once.
  • Instead of pressing the "Toggle CSS" button you can now click the bookmark instead
  • Note: This option may not always work (It might not remove the styling from every Journal) and it may cause unexpected results if used on any pages other than deviantART pages housing a Journal with Custom CSS.
    But, hey, better than nothing.

    Credits
    • `moeffju
      For the DHTML code to create the Toggle button (borrowed from his editThisJournal GreaseMonkey script).
    • ยขmynti
      For sharing her frustration with some CSS Journals, and inspiring my solution.
      Also for creating the above image.
    • `Blue-Six
      For allowing the use of his journal in the above image.
      His journal entry was a piss-take guys - fueled by code by ~rnx
    • ~miksago
      For the Bookmarklet suggestion.
    Related content
    Comments: 68

    miksago [2006-10-05 09:54:28 +0000 UTC]

    you should add that this can be cross browser, if your willing to use a bookmarklet: javascript:void(document.styleSheets[2].disabled= (document.styleSheets[2].disabled?false:true));
    CssNullify

    [note] due to dA's parser not working correctly, i have had to put a space between the = and (

    ๐Ÿ‘: 0 โฉ: 1

    Lucanos In reply to miksago [2006-10-05 22:45:07 +0000 UTC]

    Very good point, and something I will have to add - thank you for mentioning it.
    The code for v0.2 is actually slightly more complex (as I found that it didn't work on some Journals), but yes, the above code would be perfect for any Subscriber CSS Shambles.

    I'll add it to the Description Field.

    ๐Ÿ‘: 0 โฉ: 1

    miksago In reply to Lucanos [2006-10-06 01:42:14 +0000 UTC]

    yeah, thats what i'm using, cos i'm no fan of greasemonkey scripts

    ๐Ÿ‘: 0 โฉ: 0

    chromosphere [2006-10-04 16:26:43 +0000 UTC]

    haha.. this will become very handy soon enough. thanks for making it.

    ๐Ÿ‘: 0 โฉ: 1

    Lucanos In reply to chromosphere [2006-10-04 23:54:46 +0000 UTC]

    Thanks for the comment.
    As much as I know CSS, in the right hands, can make things alot easier to read, and alot prettier, in the wrong hands it can have the exact opposite effect.
    At least, now, we have a choice as to the way these journals are displayed.

    ๐Ÿ‘: 0 โฉ: 1

    chromosphere In reply to Lucanos [2006-10-06 16:47:44 +0000 UTC]

    i agree, it is nice to have that choice, no longer restricted to admin.

    ๐Ÿ‘: 0 โฉ: 0

    katherineamelia [2006-10-04 10:09:36 +0000 UTC]

    haha your so awsome luke! but i have mac

    ๐Ÿ‘: 0 โฉ: 1

    Lucanos In reply to katherineamelia [2006-10-04 11:17:47 +0000 UTC]

    Hey Katie,

    You do know that they make Firefox for Macs, too, don't you?
    Go here for versions for "...Intel-based and PowerPC-based Macintosh computers..."

    ๐Ÿ‘: 0 โฉ: 1

    katherineamelia In reply to Lucanos [2006-10-06 02:05:36 +0000 UTC]

    ahh no but thats "crossing over" to the "dark side" ahhhhhhhh

    ๐Ÿ‘: 0 โฉ: 0

    Razarelie [2006-10-04 09:10:26 +0000 UTC]

    Oh now that is just pure gold

    ๐Ÿ‘: 0 โฉ: 1

    Lucanos In reply to Razarelie [2006-10-04 11:20:20 +0000 UTC]

    Happy to hear you like.
    Mynti also mentioned that you liked the Firefox CSS Thing for your Journal.

    With this many reasons to use FF, why would you use anything else?

    ๐Ÿ‘: 0 โฉ: 1

    Razarelie In reply to Lucanos [2006-10-04 12:48:31 +0000 UTC]

    The world is seperated into people that know best, and people that think they do

    ๐Ÿ‘: 0 โฉ: 0

    auralwhiplash In reply to ??? [2006-10-04 08:40:24 +0000 UTC]



    Interesting script. Shame it won't nullify the journals that used to show up in my message centre. XD

    Also, credit =rnx for the original code in my journal, please - he lent it to me.

    ๐Ÿ‘: 0 โฉ: 1

    Lucanos In reply to auralwhiplash [2006-10-04 11:20:46 +0000 UTC]

    Done - =rnx is now mentioned in the credits.

    ๐Ÿ‘: 0 โฉ: 0

    mynti [2006-10-04 06:42:30 +0000 UTC]

    Thanks for this, Luke. I can't tell you how much appreciated it is. I enjoyed beta testing it too!

    *clicks the toggle button a few more times for good measure*

    ๐Ÿ‘: 0 โฉ: 1

    Lucanos In reply to mynti [2006-10-05 01:03:44 +0000 UTC]

    Better watch out - you're liable to get RSI with all that Toggling.

    ๐Ÿ‘: 0 โฉ: 1

    mynti In reply to Lucanos [2006-10-05 06:19:57 +0000 UTC]

    ๐Ÿ‘: 0 โฉ: 0


    <= Prev |