Yes, you can globally block JavaScript and enablpe per-site, but you block Bookmarklets too
Posted by jpluimers on 2025/05/16
Trying to trim down excessive CPU usage of my web browsers, and lessen the risk of intrusion, I experimented with globally disabling JavaScript and only enabling it on sites where it adds value to me.
That is possible (see below), but immediately showed a big side effect: Bookmarklets will not work on sites that have JavaScript disabled.
Disabling JavaScript globally only allows Bookmarklets on sites where you have enabled JavaScript. Not the situation I hoped for (:
I’ll try it for a while though.
More information:
- [Wayback/Archive] chrome turn of javascript except for certain sites – Google Search
- [Wayback/Archive] How to Enable or Disable JavaScript in a Browser
- [Wayback/A] browser – Temporarily disable Javascript for inactive Chrome tabs (except for whitelisted urls) – until active again? – Super User (thanks [Wayback/Archive] Luke Stanley and [Wayback/Archive] Thomas)
Q
I often am researching stuff, and need lots of tabs open but Chrome can get very slow. I notice that often memory seems to be increasing for chrome processes – even ones I am not interacting with. I suspect this is because of Javascript.Is there a way to temporarily disable Javascript or other resources for Chrome tabs I am not using, except for a whitelist of sites like GMail, and Facebook? (Some sites are webapps doing background tasks I find useful – like waiting for instant messages.)A
There is no way Google Chrome will automatically figure which tabs are active and disable javascript for the inactive ones. Not yet anyway.
- [Wayback/Archive] run bookmarklet when javascript is disabled – Google Search
- [Wayback/Archive] How to create a bookmarklet in Firefox with javascript disabled? – Super User (thanks [Wayback/Archive] EZM and [Wayback/Archive] Robert)
Q
I’ve this bookmarklet in Firefox:
javascript:void(location.href='https://example.com/url='+document.location.href)It works when I’ve enabled javascript for the actual webpage (the url which I want to send to
example.com). My problem is I want to use it with NoScript disabling javascript for everything except forexample.com. Obviously, the bookmarklet doesn’t work with javascript disabled.I would like to know if there is any alternative to create a bookmarklet which works with javascript disabled.
A
Sadly (?) with javascript disabled you cannot execute javascript bookmarklets. Also any “regular” bookmark cannot get a hold of the current url.
…
I think the most unobtrusive solution would be to use a (smart) keyword bookmark. In bookmarks you can use
%sas a placeholder and assign a keyword to it. Usually this makes it possible to add custom search functionality into the location bar.…
- [Wayback/Archive] How to create a bookmarklet in Firefox with javascript disabled? – Super User (thanks [Wayback/Archive] EZM and [Wayback/Archive] Robert)
--jeroen






Leave a comment