Skip to content

Instantly share code, notes, and snippets.

@matijs
Created June 13, 2011 15:13
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 matijs/1022955 to your computer and use it in GitHub Desktop.
Save matijs/1022955 to your computer and use it in GitHub Desktop.
Remove the title attribute when it's the same as the innerText of an anchor
// ==UserScript==
// @name Title stripper
// @author Matijs Brinkhuis
// @namespace http://github.com/matijs
// @version 0.1
// @description Remove the title attribute when it's the same as the innerText of an anchor
// @include http://frontpage.fok.nl/*
// ==/UserScript==
[].forEach.call(document.querySelectorAll("a[title]"), function(el) { el.innerText === el.title && el.removeAttribute("title"); });
@matijs
Copy link
Author

matijs commented Jun 13, 2011

:*

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