Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chrome - disable all styles from specific .css file

When inspecting a web site, is it possible to disable a particular .css file? I can do it in FireFox but can't find the option in Chrome.

like image 808
pkr Avatar asked May 31 '13 19:05

pkr


People also ask

How do I turn off all styles?

Select the "CSS" option in the Web Developer extension and click "Disable All Styles," or click the "Style Sheets" option in Pendule and click "Disable All Styles." After you click the option, the page will re-display without the styles.


1 Answers

If you want to remove the style for the remainder of the page session, open the DOM Inspector, locate the <link> or <style> element which links the style sheet, and remove the element. This causes all associated styles to be removed.

If you only want to disable the style sheet temporarily, add a new attribute disabled to the <link>/<style> element. Remove this attribute to enable the style sheet again.

If the site contains lots of distracting DOM elements, you can also visit the console, and something like document.styleSheets[0].disabled = true; (where 0 is the index of the style element).

like image 183
Rob W Avatar answered Sep 20 '22 07:09

Rob W