General :  K-Meleon Forum
General discussion about K-Meleon. 
Selectively allow javascript only on certain subpages of a domain
Posted by: Voltaire
Date: December 09, 2017 04:55PM

Is there a possibility to automatically allow javascript only on subpages of a domain, but have js turned off on the main page?

Example (and case that it really would be nice): www.heise.de, an technology oriented publisher. Here the informational articles do not need js (there are only ads and ad popups that work with js here, sometimes consuming a huge amount of cpu); but in the forum (www.heise.de/forum/) js is needed to show the colors of the classification by the users.

So the idea is to disallow js under www.heise.de, www.heise.de/ct/, www.heise.de/tp/, etc. , but to allow it under certain subpages like www.heise.de/forum/ and www.heise.de/foto/ etc.



Edited 1 time(s). Last edit at 12/09/2017 04:56PM by Voltaire.

Options: ReplyQuote
Re: Selectively allow javascript only on certain subpages of a domain
Posted by: siria
Date: December 09, 2017 05:52PM

URGHH... sorry, but have just taken a look into their forum source code, found among other sources an adservice at nuggad.net and opened that site directly. There's an advert for "smart audience universe". Click on that thumbnail - it just makes you SICK to the stomach again!!!
They praise how detailed they can deliver you ads:
not just by interests, but also by hundred other details, like
Household size
Gender
Children in household
Income (personal)
Income (household)
Education
Head of household
Employment status
Main income earner
PLANNING TO MOVE:
CAR BUYING:
SHOPPING PREFERENCE:
PRODUCT PREFERENCE:
to a flat
Intent on buying a car within the next 12 months
and LOTS more

As to your question, it's not as easy, because Mozilla exceptions work only by domain and prefixes, as far as I know.
But with some investigation inside the source code there are probably some tricks. Also because nowadays lots of sources are from foreign domains, like the one above. For starters you can try to block that nuggad net domain (which will then work on the whole web, not just here).
Or if you find inside the source code special "class" entries for the colors you need, there may be a chance to inject a little custom style mimicking those.

Options: ReplyQuote
Re: Selectively allow javascript only on certain subpages of a domain
Posted by: Yogi
Date: December 09, 2017 06:25PM

@Voltaire
Related thread.

However, my personal approach is this.
It's not perfect as nothing is but works for all browsers without touching them.

Options: ReplyQuote


K-Meleon forum is powered by Phorum.