Created
August 24, 2010 02:02
-
-
Save artlung/546759 to your computer and use it in GitHub Desktop.
disable-tulsaworld-copy.user.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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