Block certain script in the Chrome / Chrome DevTools

9

1

Is there a way to block, let's say some_script.js from domain.com, but not all of them?

jibiel

Posted 2011-08-19T07:31:58.663

Reputation: 203

Question was closed 2016-02-07T21:00:40.827

Answers

10

I think you can find your answer here

AdBlock for Chrome can be used to block JS files.....
https://chrome.google.com/webstore/detail/gighmmpiobklfepjocnamgkkbiglidom ...Click on the AdBlock icon and select "Show the resource list" and look for the JS you want to block and tick the box next to it and make your selections.
Note In settings, "I'm an advanced user, show me advanced options." should be selected.

MoonSire

Posted 2011-08-19T07:31:58.663

Reputation: 874

9This led me in the right direction. As for me in chrome in the year 2016, I found that adblock plus extension integrates itself with the F12 developer tools in chrome. What I did was press F12 in chrome, and select the Adblock Plus tab. Then select the 'SCRIPT' type from the dropdown at the top. Next to the scripts as you mouseover, will be a button for each script to "Block Item". The action can also be undone from the same screen in the same way. After you block the scripts you wish, just refresh the original page. – Brandon Søren Culley – 2016-06-21T02:28:39.757

Sweet, thanks! Our company installed a plugin for redmine that basically killed productivity while using it outside selected tasks, this answer helped me get control back. – Zeks – 2019-07-08T09:39:29.673