OpenSpritz Bookmarklet script allow?

Ask for help about NoScript, no registration needed to post
MajorLunaC
Posts: 3
Joined: Mon Apr 04, 2016 4:39 pm

OpenSpritz Bookmarklet script allow?

Post by MajorLunaC »

I've had a lot of trouble with Bookmarklets in the past, and I can't usually get them to work. I'm trying to get OpenSpritz to work:

https://gun.io/blog/openspritz-a-free-s ... okmarklet/

OpenSpritz is the FOSS alternative to Spritz ( http://www.spritzlet.com/ ) for speed reading sites. The Spritz bookmarklet seems to work right off the bat with no issues. However, OpenSpritz seems to be blocked by NoScript. Every time I click on the bookmarklet in the bookmarks toolbar, I see the counter for the number of scripts go up. The problem is, I don't see it in NoScript's script menu to allow it. How do I allow it?
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0
barbaz
Senior Member
Posts: 11141
Joined: Sat Aug 03, 2013 5:45 pm

Re: OpenSpritz Bookmarklet script allow?

Post by barbaz »

Site doesn't load for me:
Secure Connection Failed

An error occurred during a connection to gun.io.

Peer using unsupported version of security protocol.

Error code: <a id="errorCode" title="SSL_ERROR_UNSUPPORTED_VERSION">SSL_ERROR_UNSUPPORTED_VERSION</a>
Can you please post the bookmarklet here directly?
*Always* check the changelogs BEFORE updating that important software!
-
barbaz
Senior Member
Posts: 11141
Joined: Sat Aug 03, 2013 5:45 pm

Re: OpenSpritz Bookmarklet script allow?

Post by barbaz »

OK, loaded from Google webcache.

Code: Select all

javascript:(function(){%20cb%20=%20function(){%20create_spritz();};%20var%20script=document.createElement('SCRIPT');script.src='https://miserlou.github.io/OpenSpritz/spritz.js?callback=cb?callback=cb';%20script.onload=cb;%20document.body.appendChild(script);})();
This bookmarklet is injecting a script element into the document, bad practice for a bookmarklet and the injected script element is indistinguishable from the script elements already on the page. You will have to (Temp-)Allow the top-level site for this bookmarklet to work.
*Always* check the changelogs BEFORE updating that important software!
-
MajorLunaC
Posts: 3
Joined: Mon Apr 04, 2016 4:39 pm

Re: OpenSpritz Bookmarklet script allow?

Post by MajorLunaC »

Yeah, but I already do that. That's the only way the Spritz bookmarklet works (when it does ... says servers aren't working atm). The problem is, the OpenSpritz bookmarklet is blocked at the same time that the Spritz one works.

Would a Greasemonkey script work any better? Not that there is one, just to know if I can even ask if anyone can adapt it or a similar one.
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0
barbaz
Senior Member
Posts: 11141
Joined: Sat Aug 03, 2013 5:45 pm

Re: OpenSpritz Bookmarklet script allow?

Post by barbaz »

One thing you could try to do is slightly tweak the script the bookmarklet calls and set it up as a surrogate script (for replacement, put a file: URL pointing to the downloaded/modified script). However, I can't really give more instructions than that given that the bookmarklet points to a nonexistant site... (unless yours is different from what I posted?)
MajorLunaC wrote:Would a Greasemonkey script work any better? Not that there is one, just to know if I can even ask if anyone can adapt it or a similar one.
Properly designed user script is not subject to the limitation of that bookmarklet, because it runs in its own context.
*Always* check the changelogs BEFORE updating that important software!
-
barbaz
Senior Member
Posts: 11141
Joined: Sat Aug 03, 2013 5:45 pm

Re: OpenSpritz Bookmarklet script allow?

Post by barbaz »

Oops, I missed this part:
MajorLunaC wrote:The problem is, the OpenSpritz bookmarklet is blocked at the same time that the Spritz one works.
(emphasis mine)
You will also need to whitelist the site that the script originates from - e.g. if you have the same bookmarklet as I posted you'd need whitelist

Code: Select all

https://miserlou.github.io
however, as noted above that site seems not to exist so please don't actually whitelist that.
*Always* check the changelogs BEFORE updating that important software!
-
MajorLunaC
Posts: 3
Joined: Mon Apr 04, 2016 4:39 pm

Re: OpenSpritz Bookmarklet script allow?

Post by MajorLunaC »

Ah, well then I'll see about managing to get a Greasemonkey script to work, as it seems the most promising.

Sorry for all the trouble, and Thanks for all the help!
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0
barbaz
Senior Member
Posts: 11141
Joined: Sat Aug 03, 2013 5:45 pm

Re: OpenSpritz Bookmarklet script allow?

Post by barbaz »

No problem Image
*Always* check the changelogs BEFORE updating that important software!
-
User avatar
therube
Ambassador
Posts: 7979
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: OpenSpritz Bookmarklet script allow?

Post by therube »

OpenSpritz seems to be blocked by NoScript.
And you've tested that it works with NoScript disabled?
(It does not.
And how could it if the site it is calling is 404?)
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:43.0) Gecko/20100101 Firefox/43.0 SeaMonkey/2.40
Post Reply