X
Tap here to go to the mobile version of the site.
Your Firefox is out of date and may contain a security risk! Upgrade Firefox

Support Forum

Disabling Javascript for individual Websites

Posted

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?

Chosen solution

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/

Read this answer in context 1

Additional System Details

Installed Plug-ins

  • Shockwave Flash 11.6 r602
  • Next Generation Java Plug-in 10.17.2 for Mozilla browsers
  • NPRuntime Script Plug-in Library for Java(TM) Deploy
  • GEPlugin
  • iTunes Detector Plug-in
  • Adobe PDF Plug-In For Firefox and Netscape 10.1.6
  • Google Update
  • 5.1.20125.0
  • The QuickTime Plugin allows you to view a wide variety of multimedia content in Web pages. For more information, visit the QuickTime Web site.
  • Picasa plugin
  • NPWLPG
  • The plug-in allows you to open and edit files using Microsoft Office applications

Application

  • Firefox 19.0.2
  • User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:19.0) Gecko/20100101 Firefox/19.0
  • Support URL: http://support.mozilla.org/1/firefox/19.0.2/WINNT/en-US/

Extensions

  • Adblock Plus Pop-up Addon 0.7 (adblockpopups@jessehakanen.net)
  • Troubleshooter 1.1a (troubleshooter@mozilla.org)

Javascript

  • incrementalGCEnabled: True

Graphics

  • adapterDescription: ATI Radeon 3000 Graphics
  • adapterDescription2:
  • adapterDeviceID: 0x9616
  • adapterDeviceID2:
  • adapterDrivers: aticfx64 aticfx64 aticfx32 aticfx32 atiumd64 atidxx64 atiumdag atidxx32 atiumdva atiumd6a atitmm64
  • adapterDrivers2:
  • adapterRAM: 256
  • adapterRAM2:
  • adapterVendorID: 0x1002
  • adapterVendorID2:
  • direct2DEnabled: True
  • directWriteEnabled: True
  • directWriteVersion: 6.2.9200.16492
  • driverDate: 4-19-2011
  • driverDate2:
  • driverVersion: 8.850.0.0
  • driverVersion2:
  • info: {u'AzureContentBackend': u'direct2d', u'AzureCanvasBackend': u'direct2d', u'AzureFallbackCanvasBackend': u'cairo'}
  • isGPU2Active: False
  • numAcceleratedWindows: 1
  • numTotalWindows: 1
  • webglRenderer: Google Inc. -- ANGLE (ATI Radeon 3000 Graphics)
  • windowLayerManagerType: Direct3D 10

Modified Preferences

  • accessibility.blockautorefresh: True
  • browser.cache.disk.capacity: 358400
  • browser.cache.disk.smart_size.first_run: False
  • browser.cache.disk.smart_size.use_old_max: False
  • browser.cache.disk.smart_size_cached_value: 358400
  • browser.link.open_newwindow.restriction.override: 2
  • browser.places.smartBookmarksVersion: 4
  • browser.sessionstore.restore_on_demand: False
  • browser.startup.homepage: http://us.mc1849.mail.yahoo.com/mc/welcome?.partner=sbc&.gx=1&.tm=1364172792&.rand=8veeht2joobo6
  • browser.startup.homepage_override.buildID: 20130307023931
  • browser.startup.homepage_override.mstone: 19.0.2
  • dom.disable_window_flip: False
  • dom.mozApps.used: True
  • dom.popup_maximum: 100
  • extensions.lastAppVersion: 19.0.2
  • gfx.direct3d.checkDX10: False
  • network.cookie.prefsMigrated: True
  • places.database.lastMaintenance: 1364167527
  • places.history.expiration.transient_current_max_pages: 100642
  • plugin.disable_full_page_plugin_for_types: application/pdf
  • privacy.donottrackheader.enabled: True
  • privacy.popups.showBrowserMessage: False
  • privacy.sanitize.migrateFx3Prefs: True

Misc

  • User JS: Yes
  • Accessibility: No
iamjayakumars
  • Top 10 Contributor
412 solutions 4876 answers

Try with Firefox Addon - Ad block plus

cor-el
  • Top 10 Contributor
  • Moderator
10739 solutions 96645 answers

Helpful Reply

See also;

the-edmeister
  • Top 10 Contributor
  • Moderator
3195 solutions 24387 answers

Helpful Reply

To avoid confusion: http://kb.mozillazine.org/JavaScript_is_not_Java

http://kb.mozillazine.org/Java
http://kb.mozillazine.org/JavaScript

Question owner

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.

cor-el
  • Top 10 Contributor
  • Moderator
10739 solutions 96645 answers

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:

jscher2000
  • Top 10 Contributor
2348 solutions 20818 answers

Chosen Solution

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/

Modified by jscher2000

Question owner

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

Thanks to all the contributors. You guys are awesome!