Created
August 9, 2011 14:45
-
-
Save felclef/1134236 to your computer and use it in GitHub Desktop.
crawl-gx-dataviews
This file contains hidden or 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== | |
// @name crawl-gx-dataviews | |
// @namespace Utils | |
// @description crawl-gx-dataviews | |
// @include http://10.20.30.214/app/Dataviews.html | |
// ==/UserScript== | |
with(document) | |
{ | |
titles = getElementsByClassName("titulosRosaBgc"); | |
div = createElement("div"); | |
for(i = 0; i < titles.length; i++) { | |
title = titles[i].getAttribute("title").replace(/data view/gi, ""); | |
if(title.match(/hide/gi) != null) | |
continue; | |
label = createElement("label"); | |
label.setAttribute("style", "display:block"); | |
label.appendChild(createTextNode(title)); | |
div.appendChild(label); | |
} | |
div.setAttribute("style", "background-color:#C0C0C0; display:block; padding:5px"); | |
body.appendChild(div); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment