Skip to content

Instantly share code, notes, and snippets.

@james
Created July 31, 2013 10:39
Show Gist options
  • Save james/6121038 to your computer and use it in GitHub Desktop.
Save james/6121038 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Highlight italics
// @version 0.1
// @namespace abscond
// @include *
// ==/UserScript==
arr = document.getElementsByTagName('i');
var length = arr.length;
var element = null;
for (var i = 0; i < length; i++) {
element = arr[i];
element.style.backgroundColor = '#FF0000';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment