Created
March 8, 2013 22:55
-
-
Save patrikjohansson/5120667 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
// ==UserScript== | |
// @name vasttrafiklabs | |
// @description Removes the nag screen from labs.vasttrafik.se | |
// @grant none | |
// @version 0.0.23 | |
// @include https://labs.vasttrafik.se/* | |
// @include http://labs.vasttrafik.se/* | |
// ==/UserScript== | |
var elements = document.getElementsByTagName("div"); | |
for(var i = 0; i < elements.length; i++) { | |
var element = elements[i]; | |
if (element && element.style.zIndex == 30000) { | |
element.hidden = true; | |
break; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment