[Greasemonkey] Feature addition for weary web developers

Michael Bierman greasemonkey at thebiermans.net
Sat May 21 11:06:04 EDT 2005


I am having problems with GM and gmail and maps.google.com.  So far I
haven't been able to track down what is causing the problems.   If this has
come up before, can someone point me to the discussion? 

Thanks. 

Michael

-----Original Message-----
From: greasemonkey-bounces at mozdev.org
[mailto:greasemonkey-bounces at mozdev.org] On Behalf Of Jesse Morgan
Sent: Saturday, May 21, 2005 8:46 AM
To: greasemonkey at mozdev.org
Subject: [Greasemonkey] Feature addition for weary web developers

Hi,
    I'm sure everyone has heard the gripes from webadmins that greasemonkey
is causing them to lose control of their own content. I have made some
modifications to the gs source to allow for a "safe" mode.

Basically, you still turn greasemonkey on and off the same way, with the
status bar icon, only now there are 3 different icons or states. Disabled,
Safe Mode, and Enabled.

Disabled and Enabled still function exactly the same way as before, however
if you let gs run in safe mode, it will scan the head node of every webpage
before beginning a transform, looking for the string
"no_clientside_transform", which can be placed in a meta tag by
webdesigners.
If it finds this tag it will not transform anything.

My reccomendation would be to have gs start up and default to safe mode -
you then still have the flexability to override and force gs to do a script
transform on a page, but it also gives web designers an opportunity to say
'Hey- greasemonkey seems to be incompatable with my webpage, I'll use the
'no_clientside_transform' tag.

Anyway I have attached source code, don't know if you guys will actually
want to use it, but there you go.





More information about the Greasemonkey mailing list