Page 1 of 1
Bookmarklet reality check
Posted: Sat Mar 01, 2014 11:15 am
by agaxwmtp
I hardly ever use bookmarklets. There are a few threads taking about Noscript having some issues with them. The threads are technical and I don't understand.
Could somebody explain in a non-technical way what sorts of issues/problems Noscript is having with bookmarklets?
Also - is there some easy way to be certain bookmarklets will work? I mean, if I want to use bookmarklets on example.com - is there some setting that will help ensure that they work?
Re: Bookmarklet reality check
Posted: Sat Mar 01, 2014 9:44 pm
by Giorgio Maone
agaxwmtp wrote:
Could somebody explain in a non-technical way what sorts of issues/problems Noscript is having with bookmarklets?
You normally couldn't execute any bookmarklet on a page where scripts are disabled, e.g. by NoScript.
Therefore NoScript provides, as a "courtesy" usability feature, a bookmarklet emulation feature which so far managed to run almost any bookmarklet even on script-disabled pages, by running their code in a sandbox and/or temporarily enabling scripts just for the time of the bookmarklet execution.
The way Firefox handles JavaScript executed in a sandbox or on a page where scripts have been disabled after installing event handlers has changed in Firefox 27, breaking NoScript's bookmarklet emulation mode.
The many threads you could recently see about bookmarklets are caused by this breakage and my attempts to work around it.
agaxwmtp wrote:
Also - is there some easy way to be certain bookmarklets will work? I mean, if I want to use bookmarklets on example.com - is there some setting that will help ensure that they work?
Installing
latest development build 2.6.8.17rc1 should suffice most of the time, but some bookmarklets may require you to allow at least the page where you want to run them.
Re: Bookmarklet reality check
Posted: Sun Mar 02, 2014 11:39 pm
by Thrawn
agaxwmtp wrote:
Also - is there some easy way to be certain bookmarklets will work? I mean, if I want to use bookmarklets on example.com - is there some setting that will help ensure that they work?
In some cases, you could convert them into NoScript surrogate scripts.
Re: Bookmarklet reality check
Posted: Mon Mar 03, 2014 12:33 am
by agaxwmtp
Thrawn wrote:agaxwmtp wrote:
Also - is there some easy way to be certain bookmarklets will work? I mean, if I want to use bookmarklets on example.com - is there some setting that will help ensure that they work?
In some cases, you could convert them into NoScript surrogate scripts.
There's such a thing as "NoScript surrogate scripts"? Can a non-programmer write them? Ha, even if non-programmer can't - could somebody explain them a bit or give me a link or two to look at?
Re: Bookmarklet reality check
Posted: Mon Mar 03, 2014 3:12 am
by barbaz
agaxwmtp wrote:There's such a thing as "NoScript surrogate scripts"? Can a non-programmer write them? Ha, even if non-programmer can't - could somebody explain them a bit or give me a link or two to look at?
http://hackademix.net/2011/09/29/script ... reference/
sources pref url pattern takes any of these syntax:
http://noscript.net/abe/abe_rules.pdf wrote:• ^https?://some\.site\.com/.*
regular expression
• *.some.site.com
(matches anything.some.site.com but not some.site.com) or
.some.site.com (matches anything.some.site.com and some.site.com)
glob expression; a glob expression starting with “.” will match both the subdomains having
it as a suffix and the domain stripped of the leading dot.
• www.some.site.com
domain literal
• http://www.somesite.com
URI literal with “starts with” matching
Re: Bookmarklet reality check
Posted: Mon Mar 03, 2014 4:13 am
by Thrawn
Depending on the bookmarklet, you might just be able to just copy and paste it. See
http://forums.informaction.com/viewtopi ... 191#p67715