Created
June 15, 2010 16:20
-
-
Save cdmoyer/439322 to your computer and use it in GitHub Desktop.
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
// Show Subcontext on scripting.com, highlight | |
// Copyright (c) 2010, Chris Moyer (chris@inarow.net) http://inarow.net/ | |
// MIT (http://www.opensource.org/licenses/mit-license.php) licensed. | |
// | |
// | |
// ==UserScript== | |
// @name Scripting.com Subcontext Opener | |
// @namespace http://inarow.net/ | |
// @include http://scripting.com/* | |
// @description Version 1.0 | |
// | |
// ==/UserScript== | |
(function () { | |
var els = document.getElementsByTagName('div'); | |
for (var i=0; i<els.length; i++) { | |
if (els[i].className != 'hide' || !els[i].id.match(/div[0-9]/)) continue; | |
document.getElementById('img_' + els[i].id).src='http://scripting.com/mktree/minus.gif'; | |
els[i].className='show'; | |
els[i].style.border = '1px dashed #ccc'; | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment