Noscript blocks FireGestures with javascript bookmarklets
Posted: Thu Sep 06, 2012 6:17 am
Hi,
I have several Javascript bookmarklets that I call using a mouse gesture, by using the FireGestures add-on. I have found that if NoScript is blocking the current page, these gestures no longer work. My Javascript bookmarklet has a keyword of "foo", and the FireGestures action is defined as
An example bookmarklet for troubleshooting purposes follows; this renders the current page as black text on a white background.
There is nothing in nothing in Tools > Error Console.
Following is a list of what will work. Each works independently.
FireGestures 1.6.16
Firefox 15.0 ("Mozilla Firefox for Ubuntu canonical - 1.0)
Ubuntu 12.04
Cheers.
I have several Javascript bookmarklets that I call using a mouse gesture, by using the FireGestures add-on. I have found that if NoScript is blocking the current page, these gestures no longer work. My Javascript bookmarklet has a keyword of "foo", and the FireGestures action is defined as
Code: Select all
loadURI(getShortcutOrURI('foo',{}));Code: Select all
javascript:(function(){var%20newSS,%20styles='*%20{%20background:%20white%20!%20important;%20color:%20black%20!important%20}%20:link,%20:link%20*%20{%20color:%20#0000EE%20!important%20}%20:visited,%20:visited%20*%20{%20color:%20#551A8B%20!important%20}';%20if(document.createStyleSheet)%20{%20document.createStyleSheet(%22javascript:'%22+styles+%22'%22);%20}%20else%20{%20newSS=document.createElement('link');%20newSS.rel='stylesheet';%20newSS.href='data:text/css,'+escape(styles);%20document.getElementsByTagName(%22head%22)[0].appendChild(newSS);%20}%20})();Following is a list of what will work. Each works independently.
- Temporarily/permanently allowing the current page with NoScript.
- FireGestures that call normal (non-javascript) web pages, using the above FireGestures loadURI code (e.g. give another bookmark the keyword "foo").
- Clicking on the bookmarklet instead of using a gesture.
FireGestures 1.6.16
Firefox 15.0 ("Mozilla Firefox for Ubuntu canonical - 1.0)
Ubuntu 12.04
Cheers.