NoScript Bug? 😕
Actually this seems more like a problem with NoScript. There should be a setting to allow bookmarklets on blocked sites. If there isn't one, then I would consider this a bug in the extension.
Data-url Bookmarks 😒
Sadly (?) with javascript disabled you cannot execute javascript bookmarklets. Also any “regular” bookmark cannot get a hold of the current url.
For example the following data-url bookmark does NOT work at all:
data:text/html,<script>location.href='https://example.com/url='+document.referrer</script>
On the other hand this data-url would work if it was opened in a new tab on behalf of the original page (impossible to do with scripts disabled):
data:text/html,<script>location.href='https://example.com/url='+opener.location.href</script>
Smart bookmarks 😐
I think the most unobtrusive solution would be to use a (smart) keyword bookmark. In bookmarks you can use %s
as a placeholder and assign a keyword to it. Usually this makes it possible to add custom search functionality into the location bar. For example you would add a bookmark to https://superuser.com/search?q=%s
and assign the keyword super
to it, so you can search on superuser.com by writing something like super bookmarklet
into the location bar.
In your case you would add a bookmark to https://example.com/url=%s
and add the keyword ex
. Then instead of just opening the bookmark each time you would have to press Ctrl+L, Left, E, X, Space, Return to get the "ex " infront of the current url and open the bookmark.
Add-ons 😔
Probably there are lots of add-ons that could help here. (Maybe the Custom Buttons add-on?) But personally I wouldn't install just another add-on for this special purpose but instead re-use an (hopefully) already installed all-purposes add-on like Greasemonkey.