Skip to content

Instantly share code, notes, and snippets.

@felclef
Created August 9, 2011 14:45
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save felclef/1134236 to your computer and use it in GitHub Desktop.
Save felclef/1134236 to your computer and use it in GitHub Desktop.
crawl-gx-dataviews
// ==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