MathewWi / notscripts

Automatically exported from code.google.com/p/notscripts
Other
0 stars 0 forks source link

NotScripts Menu dosen`t work on Opera 11.10 #61

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. with the just released Opera 11.10 build 2092 for Linux the NotScripts Menu 
dosen`t work, so you can`t use it to allow (e.g. temporarily) the execution of 
scripts.
2.
3.

What is the expected output? What do you see instead?
expected: Menu with options to choose (Allow|Allow temporarily|Block ...).
instead: A blanc Menu without options. The links for the Home|Options in the 
menu also dosen`t work. 

What version of the product are you using? On what operating system?
NotScripts V1.0.4
Opera 11.10 (build 2092)
Ubuntu 10.10 (maverick)

Please provide any additional information below.

Original issue reported on code.google.com by z...@lavabit.com on 12 Apr 2011 at 12:51

GoogleCodeExporter commented 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:

GoogleCodeExporter commented 9 years ago
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