LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-06-2016, 01:34 PM   #1
newbiesforever
Senior Member
 
Registered: Apr 2006
Distribution: not disclosing my distro
Posts: 2,303

Rep: Reputation: Disabled
script blocking: why does allowing a script allow it on all pages?


I noticed that whenever I use NoScript to allow or forbid a script and the page then reloads to reflect the change, other sites I have open in tabs will also reload. It took me a while to realize that, and I didn't assume it. Why can't my script decisions affect only the page I was on? That's what I expected.
 
Old 05-06-2016, 01:40 PM   #2
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,585

Rep: Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351
Quote:
Originally Posted by newbiesforever View Post
I noticed that whenever I use NoScript to allow or forbid a script and the page then reloads to reflect the change, other sites I have open in tabs will also reload. It took me a while to realize that, and I didn't assume it. Why can't my script decisions affect only the page I was on? That's what I expected.
Because the rules are changed per script not per instance. NoScript blocks based upon URI so if you allow one URI you allow it universally (no pun intended).
I'll admit that I would like to see per-tab-instance selection and that's worth feeding back to the NoScript people especially now when Firefox is moving towards sandboxed tabs.
If you make such a suggestion then please let me know how so I can second it.
I may have to make a donation to NoScript (and AdBlock and others) when you remind me of the work I do.

Last edited by 273; 05-06-2016 at 01:42 PM.
 
Old 05-06-2016, 02:15 PM   #3
newbiesforever
Senior Member
 
Registered: Apr 2006
Distribution: not disclosing my distro
Posts: 2,303

Original Poster
Rep: Reputation: Disabled
Actually, I fooled around some more after posting, and found a solution--I'm afraid I forgot there was a right-click Options menu to look in. An option is "Automatically Reload Affected Pages When Permissions Change," with sub-option "Re-load the current tab only." If I unselect the latter, the pages will stop reloading.

That seems to solve the problem, but it doesn't work quite as expected. The browser now refrains from automatically reloading any pages, including the one I'm on. That's okay, I'm happy to reload it myself; it's just odd, because the option indicated it would reload the current tab.
Attached Thumbnails
Click image for larger version

Name:	Screenshot.png
Views:	5
Size:	58.7 KB
ID:	21697  
 
1 members found this post helpful.
Old 05-07-2016, 06:48 AM   #4
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,585

Rep: Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351
Thanks, I'd not noticed that option and it could be useful.
 
Old 05-07-2016, 04:02 PM   #5
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 18,398
Blog Entries: 12

Rep: Reputation: 5621Reputation: 5621Reputation: 5621Reputation: 5621Reputation: 5621Reputation: 5621Reputation: 5621Reputation: 5621Reputation: 5621Reputation: 5621Reputation: 5621
Quote:
Originally Posted by newbiesforever View Post
An option is "Automatically Reload Affected Pages When Permissions Change," with sub-option "Re-load the current tab only." If I unselect the latter, the pages will stop reloading.
the way i see it, if you check both boxes, only then will it reload only the current tab.
 
1 members found this post helpful.
Old 05-08-2016, 03:58 PM   #6
newbiesforever
Senior Member
 
Registered: Apr 2006
Distribution: not disclosing my distro
Posts: 2,303

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
the way i see it, if you check both boxes, only then will it reload only the current tab.
I just tried it--verified.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Bash script modification: Allowing spaces in directory/file name searches aadams Programming 10 03-19-2015 12:56 AM
a greasemonkey script for blocking the pesky youtube comment notification entz Programming 1 04-24-2012 08:26 PM
iptables script is blocking voip asterisk juan10dan Linux - Networking 16 06-11-2010 04:44 PM
Script which can process web pages? Randux Programming 17 03-07-2006 09:06 AM
mod_security blocking part of my PHP script E-Oreo Linux - Security 3 09-27-2005 06:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration