Open GoogleCodeExporter opened 9 years ago
I've actually made a quick fix for the extension to work in Opera 11.10, it
seems to function correctly. Could not browse the web without this extension,
it has some bugs but this one was critical, so I fixed it right away :D
I am not the author, but it was simple, error console was full of
"ERR_BAD_ARGUMENT" errors on the opera.extension.postMessage() call, so I
opened up the oex package (it's a normal ZIP or similar archive), searched the
code of browserActionPopup.html and index.html for calls to
opera.extension.postMessage() and noticed they are all called in fashion
opera.extension.postMessage({...msg data...},"*");. The star was probably meant
to mean "all" ports, and the documentation here:
http://www.opera.com/docs/apis/extensions/injectedscriptsguide/#i26 says that
the second argument should be an array, which it was not, so I simply removed
the parameter "*" from every single call, presuming that the default will be
"all ports". Recreated the oex package and here you go:
http://new.adina.sk/notscripts-1.0.4-1.oex
I have included all the details so that you can see it was a simple fix, also I
think the project is no longer under active development so it is questionable
when we will (if ever) see the "official" fix. In the meantime, I hope this
helps somebody and that the original author (optimalcycling) takes no offense
of me modifying his work.
This of course does not fix the problems when the page is loaded from cache
(some scripts are allowed to execute), and I don't know how to fix those
problems. Anyway this is better than nothing, as this is the only working
"noscript" like extension for opera that I am aware of.
EDIT: our webserver serves this as ZIP, because it is a ZIP archive, so please
download, rename to .oex, and install.
EDIT2: created an attachment
Original comment by viliam.k...@gmail.com
on 12 Apr 2011 at 9:36
Attachments:
Thanks!!! After your fix optimalcycling has uploaded an updated version
(NotScripts v1.1.0). So we have now even an "official" fix.
Original comment by z...@lavabit.com
on 13 Apr 2011 at 8:15
Original issue reported on code.google.com by
z...@lavabit.com
on 12 Apr 2011 at 12:51