Created
October 24, 2013 21:46
-
-
Save sarahjean/7145611 to your computer and use it in GitHub Desktop.
DevTools snippet to find css files with certain names in them, in this case generated by the css_injector drupal module
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var links = new Array(); | |
| var path_chunk = 'css_injector'; | |
| $("link").each(function() { | |
| var css = $(this); | |
| if (css.attr("href").indexOf(path_chunk) >= 0) { | |
| links.push(css.attr("href")); | |
| } | |
| }); | |
| console.log(links); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment