Skip to content

Instantly share code, notes, and snippets.

@artlung
Created August 24, 2010 02:02
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 artlung/546759 to your computer and use it in GitHub Desktop.
Save artlung/546759 to your computer and use it in GitHub Desktop.
disable-tulsaworld-copy.user.js
// ==UserScript==
// @include http://www.tulsaworld.com/*
//
var divs = document.getElementsByTagName('div');
// for each div
for (var i=0;i<divs.length;i++) {
var div = divs[i];
// that has the text "divArticleText" in the id
if (div.getAttribute('id') && div.getAttribute('id').indexOf('divArticleText') !== -1) {
// give it a whole new unique name
div.setAttribute('id', 'div-article-text-DISABLED-' + i);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment