Tuesday, 18. September 2007, 23:47:13
A Script like NoScript.
Currently, the only thing available that offers something like noscript in opera at the moment is site preferences, however you cannot selective disable scripts on a page for example. Or disable from a specific server while still allowing your own on the same site.This is a proposed solution. Once you install it, you'll see a button with the links icon at the bottom right corner of the page (it'll be the same for frames too. So you can disable scripts coming from google ad servers for example. ), click that and you'll get a list of scripts that are available to block.
Ctrl and clicking "Block" blocks the script from the same server. Clicking "Block" blocks the specific script.
The data is saved to each sites cookie. And will misfire seeing as it goes through the scripts in DOM order. And therefore DOM order will change on different pages.
Enjoy.
noscriptlikealpha.js
Wednesday, 19. September 2007, 15:20:42 (edited)
"+(isNaN(value)?'/':location.pathname);
And replace with.
/";
Wednesday, 19. September 2007, 20:47:12
BTW: I e-mailed Daniel Goldman about it. Maybe it will end up on OperaWatch.
Thursday, 20. September 2007, 14:21:17
Is there anything I can edit in the code, where it automatically blocks all scripts like NoScript? Then I can unblock whatever I want? It's really not a big of deal, that's just what I've been using to doing while using FF.
Thanks again.
Thursday, 20. September 2007, 15:48:51
Something thats on my list for a future version.
Thursday, 20. September 2007, 18:21:47
The other side of the same probleme is when you've setup the progress bar to popup down at the bottom when used: it hides then your button...it's kind of annoying when you want to uplaod something big for istance, making the proggress bar showing, and trying to block with your script at the same time.
Friday, 21. September 2007, 03:17:35
Originally posted by IcyStorM:
Please can anyone tell me how to activate it? I'm not used to enabling scripts
If you are refering to how to get the script to work in Opera, you can watch one of my videos on installing other UserJS scripts (such as OSpell and Operapedia). They are available in Flash format at Jumpcut (click the 'full' button while watching the video to see a larger version), and in both XviD and DivX formats on my video page.
If you just want to know how to use the script after you have it set up, just click the odd little box in the bottom-right corner of the webpage, select a script from the list, and click the 'block' button.
Don't hesitate to ask if you have questions.
Saturday, 22. September 2007, 23:19:50
This script won't be backwards-compatible with the noscript userjs, as I fixed a bug where the script might match 1 for 11 in dom for example.
Ultimate blockage.js
Saturday, 22. September 2007, 23:24:50
Anyway, a very good update. Many thanks for your hard work.
Sunday, 23. September 2007, 00:20:12
Originally posted by Maulkin:
Hey, why doesn't it work on http://www.lemonde.fr/ ?
I can confirm that it doesn't work, but I have no idea why...
Sunday, 23. September 2007, 00:25:26
Sunday, 23. September 2007, 18:51:44
Originally posted by Maulkin:
Can I ask you again how to change the position of the button of your script? (for the reasons I said in my other post up)
Change the following code in the script..
bottom:1px;right:1px;
you can change bottom to top or right to left, in all it'll change the corner of where the button appears.
Sunday, 23. September 2007, 21:37:21
And made some adjustments to the code so the button appears a bit faster.
Sunday, 23. September 2007, 21:45:26
See here: http://ytsejammersisrael.com/phpbb
Intended?
Sunday, 23. September 2007, 23:58:03
The update doesn't currently save pathwise anymore, simply the reason because I can't seem to find a way to delete the cookies set to a path with javascript. But any things blocked already will work, however isn't removable by the script, you'd need to search in your cookies list for either 'noembed'/'noimg'/'noiframe'/'noscript' if you want to delete them.
There are a few more optimisations to the script too.
Monday, 24. September 2007, 19:21:21
Friday, 28. September 2007, 20:32:15
Sunday, 30. September 2007, 01:51:17 (edited)
Made the toggle button a bit bigger.
Changed the format of the values saved again, to save more.
You can now block any individual resources to pathname without any problems with script overwriting the setting.
Fixed problem where holding shift and clicking "Block" wouldn't change the buttons text.
Not backwards compatible with the older script though. The script should work faster though, and I plan to keep this format for updated versions of the script now.
Added a visual indicator option, doesn't work for scripts and is a little buggy. To enable it, change "visindicator" from false to true at the top of the script.
Sunday, 30. September 2007, 20:25:16
Sunday, 30. September 2007, 22:13:47
Saturday, 6. October 2007, 22:27:15
When only images are to block, then in blocklist there aren't displayed their URL.
In http://google.pl there is no button.
In http://dobrym.pl/ when I click button, then "window" with blocklist stretchs oneself to site width.
Sunday, 7. October 2007, 20:58:28 (edited)
dobrym.pl is fixed in new version.
EDIT: Just fixed the "When only images are to block, then in blocklist there aren't displayed their URL." problem too.
Tuesday, 9. October 2007, 09:06:45
Tell me if I'm wrong about its usefulness, or if it's already implemented in the script, but I think it'd be nice to have this feature in Opera
Friday, 12. October 2007, 21:01:19
http://files.myopera.com/shoust/files/Ultimate%20blockage.js
Noscriptlike:
http://files.myopera.com/shoust/files/noscriptlikealpha.js
Saturday, 13. October 2007, 11:48:55
Monday, 22. October 2007, 09:56:26
I'd suggest you to edit your first post and keep there both updated scripts.
Monday, 22. October 2007, 10:57:02
Tuesday, 23. October 2007, 08:33:59
I'm Just testing the complete blockage script and it seems that by default, it allows scripts but gives the option to block them if you choose "block". But that's no good because for security and privacy, it should be the other way round i.e. the scripts should be blocked by default and complete blockage should give me the option to allow them if I choose.
Any thoughts or have I missed something vital?
JB
Tuesday, 23. October 2007, 12:19:46
Monday, 10. December 2007, 03:34:46
Originally posted by shoust:
If the scripts are blocked by default, then some pages won't work as some rely on external scripts. Might make a different version depending on if it doesn't take too much new code.
I know I am late to the discussion, and I understand your point, but buggrit101 is right in this regard. The point of the NoScript extension in Firefox is to allow the user to enable scripting for only the domains he or she trusts not to be malicious. In your current implementation, any malicious scripts will already have been executed once before the user has a chance to block it. This might be useful for annoying ads or other behavior, but in terms of security/exploits/etc. this mode of operation leaves much to be desired.
Does NoScript cause certain sites to break? Absolutely, but if the user chooses to trust the required script (2 clicks), the site regains functionality (and this preference is remembered for future visits to the same site). In exchange for the added security, I'm willing to suffer this brief inconvenience. I would love for Opera to support something like this (either through a uesrJS, or maybe via built-in functionality). I was a happy Opera user for several years, but NoScript is keeping me on Firefox for now. Firefox, however, has its own set of annoyances, and I'd love to come back!
Thursday, 20. December 2007, 18:54:43
Most web sites that are exploited by loading an external javascript. When w3schools was hacked a few months back it loaded an external javscript file with a several different browser and Windows exploits attached to it. There are also exploits around to steal people's cookies by loading external javascript.
Someone may argue that Opera is more secure and these exploits will not work. Nothing is truly secure. Any code can be exploited if given enough time and resources.
Until there is a way for me to only allow javascript from sites I determin I will have to stick with Firefox and noscript.
Thursday, 20. December 2007, 20:23:27
Originally posted by Zac Garrett:
Nothing is truly secure. Any code can be exploited if given enough time and resources.
very sad, but true.
btw, there's an interesting config setting "DelayedScriptExecution":
Ignore script tags until entire document is parsed and rendered, then execute all scripts in order and re-render.
just wonder if this setting could be of any help with the following implementation issue of this userscript:
Originally posted by flanker:
The point of the NoScript extension in Firefox is to allow the user to enable scripting for only the domains he or she trusts not to be malicious.
In your current implementation, any malicious scripts will already have been executed once before the user has a chance to block it.
I mean if the UserScripts with this setting are loaded (and executed) before Author/External ones, then this particular userscript may be able to defer execution of an alien JS untill user's approval.
Friday, 2. May 2008, 23:15:04 (edited)
No new changes though at the moment though.
EDIT: Scratch that, added buttons to block/unblock all scripts at once, or from server.
noscriptunblockmode.js
Thursday, 15. May 2008, 00:19:29
Saturday, 17. May 2008, 18:26:01
Saturday, 17. May 2008, 22:57:27 (edited)
EDIT: Added a new feature (you need to edit script for this.) Basically all scripts based on the site(so scripts on my.opera.com will only work on my.opera.com , thus any scripts fetched from other sites will be blocked. Plus when site scripts are on, the "Block"/"Unblock" and "Server" buttons are disabled accordingly.) will be enabled by default, if you want to turn this off, set "blocksitescripts" to true in the script file.
Enjoy
Showing topic replies 1 - 50 of 74.
Forums » Opera Community » General Opera topics » User JavaScript
