Page 1 of 1

OpenSpritz Bookmarklet script allow?

Posted: Mon Apr 04, 2016 4:48 pm
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?

Re: OpenSpritz Bookmarklet script allow?

Posted: Mon Apr 04, 2016 5:00 pm
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?

Re: OpenSpritz Bookmarklet script allow?

Posted: Mon Apr 04, 2016 5:11 pm
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.

Re: OpenSpritz Bookmarklet script allow?

Posted: Mon Apr 04, 2016 5:43 pm
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.

Re: OpenSpritz Bookmarklet script allow?

Posted: Mon Apr 04, 2016 6:02 pm
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.

Re: OpenSpritz Bookmarklet script allow?

Posted: Mon Apr 04, 2016 6:16 pm
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.

Re: OpenSpritz Bookmarklet script allow?

Posted: Mon Apr 04, 2016 6:36 pm
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!

Re: OpenSpritz Bookmarklet script allow?

Posted: Mon Apr 04, 2016 6:38 pm
by barbaz
No problem Image

Re: OpenSpritz Bookmarklet script allow?

Posted: Tue Apr 05, 2016 12:58 am
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?)