Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • 1
    I'm using this in the console so I don't need to add anything else in my code Commented Oct 23, 2017 at 21:22
  • @Bram the curly brace is optional. The code works fine. Commented Sep 2, 2019 at 11:17
  • 3
    Great answer since it doesn't rely on jQuery! :) Commented Mar 31, 2020 at 3:11
  • 3
    Just wondering the purpose of === - when could the rel attribute value be "stylesheet" but its type not be a string? Commented May 4, 2021 at 22:06