X
Tap here to go to the mobile version of the site.

Support Forum

disable javascript per site basis

Posted

Hi, I would like to know how can I disable javascript for only some sites and not others. I do not want to install plug-in for this. I believe it was possible earlier to do this earlier through an option as shown in the screenshot. But in recent version FIrefox 57, there does not seem to be Javascript option.

Hi, I would like to know how can I disable javascript for only some sites and not others. I do not want to install plug-in for this. I believe it was possible earlier to do this earlier through an option as shown in the screenshot. But in recent version FIrefox 57, there does not seem to be Javascript option.
Attached screenshots
Quote

Additional System Details

Application

  • User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0

More Information

Happy112
  • Top 10 Contributor
562 solutions 5694 answers

Hi  !

If you don't want to use an extension, you'd have to to find the 'javascript.enabled' preference on the 'about:config' page and change its value to 'false' for every site that you want JavaScript disabled - a lot of work  !

Using an extension like 'NoScript' or 'YesScript2' would be the easiest
way ......

Just in case you change your mind about using an extension :

https://addons.mozilla.org/en-US/firefox/addon/noscript/

https://addons.mozilla.org/en-US/firefox/addon/yesscript2/

Hi ! If you don't want to use an extension, you'd have to to find the 'javascript.enabled' preference on the 'about:config' page and change its value to 'false' for every site that you want JavaScript disabled - a lot of work ! Using an extension like 'NoScript' or 'YesScript2' would be the easiest <BR>way ...... Just in case you change your mind about using an extension : https://addons.mozilla.org/en-US/firefox/addon/noscript/ https://addons.mozilla.org/en-US/firefox/addon/yesscript2/
Was this helpful to you?
Quote

Question owner

@Happy112 thanks for replying, but by doing that I got javascript disabled for all sites. Where do I enter the list or site for which I want javascript to be disabled.

I want to do is to disable it only for few sites and allow all other to be able to execute javascript codes.

It would be good if I get Javascript as an option in one or both of the places as shown in the attached screenshots.

@Happy112 thanks for replying, but by doing that I got javascript disabled for all sites. Where do I enter the list or site for which I want javascript to be disabled. I want to do is to disable it only for few sites and allow all other to be able to execute javascript codes. It would be good if I get Javascript as an option in one or both of the places as shown in the attached screenshots.
Was this helpful to you?
Quote
Happy112
  • Top 10 Contributor
562 solutions 5694 answers

I should have explained better :

Changing that preference on the 'about:config' page would mean that you would have to do that every time you're on a page where you want JS disabled, and then change the value back again when you go to a page where you need JS enabled. Hence I said that it would be a lot work .....

I can't think of any other option to disable JS for specific sites, other than to use an extension.

If you want this option added to the Page Info Permissions tab, maybe you could post this suggestion here :

https://qsurvey.mozilla.com/s3/FirefoxInput/

I should have explained better : Changing that preference on the 'about:config' page would mean that you would have to do that every time you're on a page where you want JS disabled, and then change the value back again when you go to a page where you need JS enabled. Hence I said that it would be a lot work ..... I can't think of any other option to disable JS for specific sites, other than to use an extension. If you want this option added to the Page Info Permissions tab, maybe you could post this suggestion here : https://qsurvey.mozilla.com/s3/FirefoxInput/
Was this helpful to you?
Quote

Question owner

@Happy112 Thanks again for replying and sorry that I could not accept non of your reply as "Solved the Problem".

@Happy112 Thanks again for replying and sorry that I could not accept non of your reply as "Solved the Problem".
Was this helpful to you?
Quote
Happy112
  • Top 10 Contributor
562 solutions 5694 answers

androdebugur said

@Happy112 Thanks again for replying and sorry that I could not accept non of your reply as "Solved the Problem".

I'm the one who should be sorry - after all I haven't been able solve your problem.

But who knows : maybe someone else will see this thread and come up with the perfect solution for you ........

''androdebugur [[#answer-1068848|said]]'' <blockquote> @Happy112 Thanks again for replying and sorry that I could not accept non of your reply as "Solved the Problem". </blockquote> I'm the one who should be sorry - after all I haven't been able solve your problem. But who knows : maybe someone else will see this thread and come up with the perfect solution for you ........
Was this helpful to you?
Quote
the-edmeister
  • Top 25 Contributor
  • Moderator
5257 solutions 38857 answers

Helpful Reply

NoScript blocks all JavaScript by default, then it's up to the user to allow JavaScript domain by domain for every "new" page that is loaded. NoScript will remember the domains that you select as Trusted at each particular website until you select "Untrusted". It can be a real pain to use until you get it "trained" for the website that you frequent, and with "new" websites.

Where - Yes!Script worked almost in the opposite manner, as I recall the last time I used the Legacy version. Not sure about YesScript2 though, haven't tried it in a Quantum 57+ version yet; although I like NoScript and use it.

NoScript blocks all JavaScript by default, then it's up to the user to '''allow''' JavaScript domain by domain for every "new" page that is loaded. NoScript will remember the domains that you select as '''Trusted''' at each particular website until you select "Untrusted". It can be a real pain to use until you get it "trained" for the website that you frequent, and with "new" websites. Where - Yes!Script worked almost in the opposite manner, as I recall the last time I used the Legacy version. Not sure about YesScript2 though, haven't tried it in a Quantum 57+ version yet; although I like NoScript and use it.
Was this helpful to you? 1
Quote
Happy112
  • Top 10 Contributor
562 solutions 5694 answers

@ the-edmeister :

The OP doesn't want to use an extension though ..... And I must admit that adding this option in the Control Center (Page Info), under the Permissions tab, sounds like a good idea - hence I suggested to submit the idea here :

https://qsurvey.mozilla.com/s3/FirefoxInput/

@ the-edmeister : The OP doesn't want to use an extension though ..... And I must admit that adding this option in the Control Center (Page Info), under the Permissions tab, sounds like a good idea - hence I suggested to submit the idea here : https://qsurvey.mozilla.com/s3/FirefoxInput/
Was this helpful to you?
Quote
cor-el
  • Top 10 Contributor
  • Moderator
16317 solutions 147250 answers

Helpful Reply

Note that you can open the developer toolbox and enable the feature to block JavaScript while the toolbox is open as a workaround. You would only have to remember to open the toolbox. You can leave the developer toolbar (Shift+F2) open for easy access.

It is under the Advanced Settings.

Note that you can open the developer toolbox and enable the feature to block JavaScript while the toolbox is open as a workaround. You would only have to remember to open the toolbox. You can leave the developer toolbar (Shift+F2) open for easy access. *https://developer.mozilla.org/en/Tools/Tools_Toolbox#Settings It is under the Advanced Settings.
Was this helpful to you? 1
Quote

Question owner

Thank you everyone for taking time to reply.

I have used noscript and now I am using ublock origin. The reason I stopped using noscript earlier was either you can allow to load a scripts from a domain or do not allow at all (if I remember correct) and one has to have adblock as well, other than that it worked very well. Now I have ublock origin but I dont know why despite blocking everything (see screenshot attachment 1) i dont get same results (please see screenshot 2) as I would get if I disable javascript or have used noscript (please see screenshot 3).

A reason why I dont want to use more plugins is I do not trust them, I do not know if Firefox check plugins before allowing them on firefox addons website and finally I want Firefox to be as fast as possible when I want to open a page.

Thank you everyone for taking time to reply. I have used noscript and now I am using ublock origin. The reason I stopped using noscript earlier was either you can allow to load a scripts from a domain or do not allow at all (if I remember correct) and one has to have adblock as well, other than that it worked very well. Now I have ublock origin but I dont know why despite blocking everything (see screenshot attachment 1) i dont get same results (please see screenshot 2) as I would get if I disable javascript or have used noscript (please see screenshot 3). A reason why I dont want to use more plugins is I do not trust them, I do not know if Firefox check plugins before allowing them on firefox addons website and finally I want Firefox to be as fast as possible when I want to open a page.
Was this helpful to you? 1
Quote
James
  • Top 25 Contributor
  • Moderator
1416 solutions 9822 answers

androdebugur said

I have used noscript and now I am using ublock origin. A reason why I dont want to use more plugins is I do not trust them, I do not know if Firefox check plugins before allowing them on firefox addons website

NoScript and uBlock Origin are Extensions as Plugins refers to say Flash Player from Adobe. https://addons.mozilla.org/faq

Mozilla does review the Extensions and if by chance something is of concern with a version or entirety it can get removed quickly. https://developer.mozilla.org/en-US/Add-ons/AMO/Policy/Reviews

''androdebugur [[#answer-1070008|said]]'' <blockquote>I have used noscript and now I am using ublock origin. A reason why I dont want to use more plugins is I do not trust them, I do not know if Firefox check plugins before allowing them on firefox addons website </blockquote> NoScript and uBlock Origin are Extensions as Plugins refers to say Flash Player from Adobe. https://addons.mozilla.org/faq Mozilla does review the Extensions and if by chance something is of concern with a version or entirety it can get removed quickly. https://developer.mozilla.org/en-US/Add-ons/AMO/Policy/Reviews
Was this helpful to you?
Quote

Question owner

James said

androdebugur said
I have used noscript and now I am using ublock origin. A reason why I dont want to use more plugins is I do not trust them, I do not know if Firefox check plugins before allowing them on firefox addons website

NoScript and uBlock Origin are Extensions as Plugins refers to say Flash Player from Adobe. https://addons.mozilla.org/faq

Mozilla does review the Extensions and if by chance something is of concern with a version or entirety it can get removed quickly. https://developer.mozilla.org/en-US/Add-ons/AMO/Policy/Reviews

Yes, sorry I meant addons.

''James [[#answer-1070027|said]]'' <blockquote> ''androdebugur [[#answer-1070008|said]]'' <blockquote>I have used noscript and now I am using ublock origin. A reason why I dont want to use more plugins is I do not trust them, I do not know if Firefox check plugins before allowing them on firefox addons website </blockquote> NoScript and uBlock Origin are Extensions as Plugins refers to say Flash Player from Adobe. https://addons.mozilla.org/faq Mozilla does review the Extensions and if by chance something is of concern with a version or entirety it can get removed quickly. https://developer.mozilla.org/en-US/Add-ons/AMO/Policy/Reviews </blockquote> Yes, sorry I meant addons.
Was this helpful to you?
Quote
WestEnd
  • Top 25 Contributor
45 solutions 2118 answers

I installed java 9.0.4 and see no java Addons so not sure how your getting that.

I installed java 9.0.4 and see no java Addons so not sure how your getting that.
Was this helpful to you?
Quote
Happy112
  • Top 10 Contributor
562 solutions 5694 answers

WestEnd said

I installed java 9.0.4 and see no java Addons so not sure how your getting that.

The OP is talking about uBlock Origin and NoScript .....

(Java is not the same as JavaScript)

''WestEnd [[#answer-1070255|said]]'' <blockquote> I installed java 9.0.4 and see no java Addons so not sure how your getting that. </blockquote> The OP is talking about uBlock Origin and NoScript ..... (Java is not the same as JavaScript)
Was this helpful to you?
Quote
James
  • Top 25 Contributor
  • Moderator
1416 solutions 9822 answers

WestEnd said

I installed java 9.0.4 and see no java Addons so not sure how your getting that.

Just so you are aware... http://kb.mozillazine.org/JavaScript_is_not_Java https://support.mozilla.org/en-US/kb/npapi-plugins

And Java 9 may not have the NPAPI Plugin anymore while Java 8 does.

''WestEnd [[#answer-1070255|said]]'' <blockquote> I installed java 9.0.4 and see no java Addons so not sure how your getting that. </blockquote> Just so you are aware... http://kb.mozillazine.org/JavaScript_is_not_Java https://support.mozilla.org/en-US/kb/npapi-plugins And [https://pitss.com/us/2017/07/27/java-plugin-notice-for-forms-reports/ Java 9 may not have the NPAPI Plugin anymore] while [https://java.com/en/download/ Java 8 does].

Modified by James

Was this helpful to you?
Quote
Ask a question

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.