MegaZone (zonereyrie) wrote,
MegaZone
zonereyrie

A little trick

I've been running into more sites using JavaScript rich text editors without the ability to disable them. It bugs me, since I know how to write my own markup and it interferes with things like Firefox's built-in spell checker. The most common one is called TinyMCE. Don't get me wrong, it is a fantastic piece of work, IMHO, and I don't mind it being *available*, even the default, just let me turn it off if I don't want to use it. The site I run into this most with is SlingCommunity.com, which uses it in their forums.

Tonight I finally got frustrated enough to look for a way to disable it. I tried searching on things like 'disable TinyMCE' and 'block TinyMCE' - but I just kept finding pages with instructions to web masters on how to incorporate TinyMCE and allowing their users to disable/enable it. I thought about trying to put something in userContent.css, but that was too much work.

It occurred to me that all I really needed to do was stop the TinyMCE JavaScript file from loading (yes, I know, turning of JS completely would do that - I use too many sites where JS is worth having, IMHO). How to do that? Well - how about abusing AdBlock Plus? Brilliant! I installed the AdBlock Plus extension in Firefox, and simply added a rule for '*/tiny_mce.js' (what the file is normally called) and it no longer loads. Mission accomplished.

So keep it in mind if you run into things like this - AdBlock Plus can block any content from loading, you just need to enter the right URL pattern. It is useful for more than ad blocking. :-)
Tags: firefox, geek, javascript, software
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 3 comments