anthonycr / Lightning-Browser

A lightweight Android browser with modern navigation
http://acrdevelopment.org
Mozilla Public License 2.0
2.19k stars 796 forks source link

Add a JavaScript White/Blacklist #293

Open vixsomnis opened 9 years ago

vixsomnis commented 9 years ago

Can we put the javascript toggle button in the dropdown menu?

I'd like to eventually be able to whitelist specific scripts on specific domains, but just being able to quickly enable and disable javascript would be awesome.

anthonycr commented 9 years ago

This is a little too specific of a toggle to put in the menu IMO. A whitelist/blacklist for javascript is certainly within my scope though.

vixsomnis commented 9 years ago

Cool. A good spot for it seems to be the bottom of the right-hand drawer.

revuwa commented 8 years ago

Such a feature would be really great, and would bring a NoScript (https://noscript.net/) flavor to Lightning. So I would dream of the following scenario: if the general option 'Enable JavaScript' is unselected, a fast accessible (menu-)point called

or whatever - which adds the current site to the JavaScript exception-whitelist - would be shown.

Additionally this whitelist could be recessed with a settings-point like [Reset/Clear JavaScript Whitelist] in the Privacy Settings or wherever.

If this NoJS functionality would become handy, (and so it would be used by more people), this would also bring a great security benefit to Lightning, in my eyes.

Thanks in advance for looking into this.

epitron commented 8 years ago

I can understand the desire not to clutter up the dropdown menu, but to live up to its name as a Lightning-fast browser, having JavaScript disabled by default is a must.

There needs to be an easy way to re-enable JavaScript for specific sites, otherwise people will end up taking the path of least resistance, and just re-open the link in Chrome. Which means they can't switch to Lightning as their primary browser.