Log in

No account? Create an account
Ramblings Journals I Read Calendar The Dirt MegaZone's Waste of Time Older Older Newer Newer
A little trick - MegaZone's Safety Valve
The Ramblings of a Damaged Mind
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: , , ,
Current Location: 42.308929N 71.795328W
I am: sleepy sleepy
Current Media: TiVo: Brainiac

buran From: buran Date: April 18th, 2007 05:43 pm (UTC) (Direct Link)
It can also block elements within pages. I most commonly use it to block a given div, but it can also block things like named tables and the like. But I do block a few javascripts.

You could also try the NoScript extension and set it to globally allow, then blacklist, say, certain advertisers' domains.
zonereyrie From: zonereyrie Date: April 18th, 2007 08:13 pm (UTC) (Direct Link)
I thought about blocking JS for the site - but they actually use it effectively for some other things. So I was looking for a scalpel instead of a butcher knife. :-)
buran From: buran Date: April 18th, 2007 08:15 pm (UTC) (Direct Link)
I use it for that, too. The NoScript idea is for domains that only ever use JavaScript for intrusive ad purposes.