JavaScript Switcher 的评价
JavaScript Switcher 作者: meetDeveloper
Kinnear 的评价
评分 5 / 5
来自 Kinnear,7 年前Hi Suraj
Just to clarify one thing (since I can't reply to your original message), I believe I made one bit more complex than I implied.
So, it doesn't need to specifically detect if JS is enabled for each domain a page loads. It simply disables JS for each domain automatically. It just lists all domains being accessed on the current tab, and JS is disabled for them all. You can then select which domains from the drop-down you want to allow to use JS. At that stage, it refreshes the page (and the list, since some of the domains you've allowed access to may now be loading scripts pointing to more domains).
While NoScript goes beyond this and does things like intercepting individual scripts on specific pages, etc, simply being able to whitelist/blacklist multiple domains at once (especially since a lot of ad servers don't have 'pages' that you can actually visit) from within a site you're using is great basic functionality. Since the target audience is power users, being able to make the call on which domains to allow which the page is loading, allows us to tailor the functionality of the site, since most core functionality will come from just a few of the domains. For non experienced users, then a JS on-off script is going to be fine.
Good luck, and thanks for your hard work!
Just to clarify one thing (since I can't reply to your original message), I believe I made one bit more complex than I implied.
So, it doesn't need to specifically detect if JS is enabled for each domain a page loads. It simply disables JS for each domain automatically. It just lists all domains being accessed on the current tab, and JS is disabled for them all. You can then select which domains from the drop-down you want to allow to use JS. At that stage, it refreshes the page (and the list, since some of the domains you've allowed access to may now be loading scripts pointing to more domains).
While NoScript goes beyond this and does things like intercepting individual scripts on specific pages, etc, simply being able to whitelist/blacklist multiple domains at once (especially since a lot of ad servers don't have 'pages' that you can actually visit) from within a site you're using is great basic functionality. Since the target audience is power users, being able to make the call on which domains to allow which the page is loading, allows us to tailor the functionality of the site, since most core functionality will come from just a few of the domains. For non experienced users, then a JS on-off script is going to be fine.
Good luck, and thanks for your hard work!
开发者回应
发布于 7 年前When you say JS is enabled for each domain a page loads, Can you clear what you really mean?? Does not that mean what that video showed??
Please do me one favor, when you load a webpage, please go to web console in firefox and paste this
var resources = window.performance.getEntriesByType("resource");
resources.forEach(function (resource) {
console.log(resource.name);
});
and tell me is the output that comes, you mean that by external domains it loads, kindly confirm
Please do me one favor, when you load a webpage, please go to web console in firefox and paste this
var resources = window.performance.getEntriesByType("resource");
resources.forEach(function (resource) {
console.log(resource.name);
});
and tell me is the output that comes, you mean that by external domains it loads, kindly confirm