Page 1 of 1

Will this be the end of NoScript?

Posted: Wed Oct 26, 2016 4:52 pm
by mario78
Hi,

just found this: https://bugzilla.mozilla.org/show_bug.cgi?id=1286822

Previously, the developer of AdBlock Plus suggested that your addon relies on "beforescriptexecute": https://issues.adblockplus.org/ticket/3207#comment:8 (last commentary, last sentence)

Is this correct? Does that mean, once Mozilla removes those events, NoScript will no longer work?

Re: Will this be the end of NoScript?

Posted: Wed Oct 26, 2016 5:04 pm
by barbaz
Looks like it would only affect surrogate script prefixed with < or >

Re: Will this be the end of NoScript?

Posted: Wed Oct 26, 2016 8:28 pm
by therube
(Not that I have any clue about any of this stuff...)

https://groups.google.com/a/chromium.or ... ut6cE4ORcJ
With these standardized events, an extension like NoScript can become more realistic for Chrome.
Maybe the end of any possible NoScript for Chrome?

Re: Will this be the end of NoScript?

Posted: Thu Oct 27, 2016 1:48 pm
by PLD
barbaz wrote:Looks like it would only affect surrogate script prefixed with < or >
Maybe more:

Code: Select all

noscript.surrogate.obse.sources = @*

noscript.surrogate.obse.replacement =

function onBeforeScriptExecute(e) {
  if(e.target.src) {
    console.log("[obse] ExternalScript " + e.target.src);
  }
  else {
    console.log("[obse] InlineScript");
  }
}
document.addEventListener("beforescriptexecute", onBeforeScriptExecute, true);
I wonder how many surrogates, greasemonkey scripts, and other consumers are out there.

Re: Will this be the end of NoScript?

Posted: Thu Oct 27, 2016 10:03 pm
by barbaz
PLD wrote:I wonder how many surrogates, greasemonkey scripts, and other consumers are out there.
I found one in my PM inbox. Will notify the sender about this thread.

Re: Will this be the end of NoScript?

Posted: Thu Oct 27, 2016 10:46 pm
by fatboy
One more surrogate — viewtopic.php?p=71013#p71013