搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Disabling Javascript for individual Websites

  • 7 回覆
  • 7 有這個問題
  • 61 次檢視
  • 最近回覆由 stepan1

more options

I have finally isolated the source of unblockable ads that pop up on certain Websites, but not others. These ads originate from different sources, but many of them are Chitka ads that block part of the screen and can't even be clicked OFF. They just continuously block what you are trying to read or see.

When I disable Java on Firefox, these ads disappear--totally. Unfortunately, many other Websites that I visit utilize Java. So I am wondering, "Why can't we have control over which Websites display Java and which ones don't--much like blocking popup ads from certain Websites and allowing them from others?"

The only work around I have found, is to open TWO browsers: Firefox with Java disabled to view the sites that have the annoying ads and Internet Explorer with Java enabled to view the sites that require Java and don't have annoying popups.

Am I the only one having this problem?

I have finally isolated the source of unblockable ads that pop up on certain Websites, but not others. These ads originate from different sources, but many of them are Chitka ads that block part of the screen and can't even be clicked OFF. They just continuously block what you are trying to read or see. When I disable Java on Firefox, these ads disappear--totally. Unfortunately, many other Websites that I visit utilize Java. So I am wondering, "Why can't we have control over which Websites display Java and which ones don't--much like blocking popup ads from certain Websites and allowing them from others?" The only work around I have found, is to open TWO browsers: Firefox with Java disabled to view the sites that have the annoying ads and Internet Explorer with Java enabled to view the sites that require Java and don't have annoying popups. Am I the only one having this problem?

被選擇的解決方法

The NoScript extension is great, but, you need to be committed to the minimal scripting principle because sites increasingly expect access to multiple domains. In other words, you don't just need to approve facebook.com, but several other domains including their content distribution network domain. And there's no way for the extension to inform you in advance which ones are critical functionality, which ones are just ads, etc. So you may end up reloading the page a few times before you get it just the way you like. Of course, if it's a site on which you plan to spend a good deal of time, it's worth it. As I say to my colleagues, "What ads?"

http://noscript.net/

從原來的回覆中察看解決方案 👍 1

所有回覆 (7)

more options
more options
more options
more options

In answer to the suggestions:

1. I have read about yesscript, but haven't tried it, because of user comments to the effect that it was difficult to decide which scripts to allow to run on a particular Webpage and which scripts to not allow to run. If I get frustrated enough, I may try it.

2. The-edmeister is quite correct, it is JavaScript and NOT Java that I am talking about. Disabling JavaScript on Firefox is what stops the referenced ads cold. Nothing else works, except possibly yesscript with its operating caveats.

3. I have the Adblock Plus Popup Addon. It works with most popup ads, but not the JavaScript ads at the bottom of the page I am talking about.

For some reason these ads only popup on certain Websites and not others--possibly because the site owners allow them for additional revenue?

But, I want to have control over MY computer and MY browsing experience without the frustration of clicking OFF (or not even being able to click OFF) revenue-generating ads.

So, my question remains, "Would it not be possible to disable JavaScript on a Website-by-Website basis?"

I think that would be a great addition to the Firefox browsing experience.

more options

Note that a lot of websites rely on JavaScript working properly for building/updating the page and make links work (e.g. add onclick events) and you may only want to disable one specific JavaScript file to remove specific content.

You will have to check which script is responsible for that bar and then add a specific rule in an extension (ABP) to block that file.
You should be able to see this in the page source.

Firefox has docshell support to disable JavaScript and other like plugins and images on a tab base, but for specific domains you need an extension like YesScript or NoScript or Adblock Plus.

See also:

more options

選擇的解決方法

The NoScript extension is great, but, you need to be committed to the minimal scripting principle because sites increasingly expect access to multiple domains. In other words, you don't just need to approve facebook.com, but several other domains including their content distribution network domain. And there's no way for the extension to inform you in advance which ones are critical functionality, which ones are just ads, etc. So you may end up reloading the page a few times before you get it just the way you like. Of course, if it's a site on which you plan to spend a good deal of time, it's worth it. As I say to my colleagues, "What ads?"

http://noscript.net/

由 jscher2000 - Support Volunteer 於 修改

more options

I installed noscript and the amazing thing is "It worked!"

Thanks to all the contributors. You guys are awesome!