Skip to content

Instantly share code, notes, and snippets.

@pbhj
Created December 5, 2018 15:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pbhj/25c2cb340296bf4ea945f820a7d04b30 to your computer and use it in GitHub Desktop.
Save pbhj/25c2cb340296bf4ea945f820a7d04b30 to your computer and use it in GitHub Desktop.
javascript:var css = 'a:after{content:" (" attr(href) ") ";}', style = document.createElement('style'); style.type = 'text/css'; style.appendChild(document.createTextNode(css)); document.head.appendChild(style);
@pbhj
Copy link
Author

pbhj commented Dec 5, 2018

https://stackoverflow.com/questions/524696/how-to-create-a-style-tag-with-javascript modified to make into a javascript that can be run from console.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment