Created
May 14, 2013 09:42
-
-
Save anonymous/5574817 to your computer and use it in GitHub Desktop.
Remove the "stalker" behaviour from Jira 5 ticket pages
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 Jira 5 - no stalker | |
// @namespace http://djce.org.uk/greasemonkey | |
// @include https://jira.dev.bbc.co.uk/browse/* | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
try { | |
var stalker = document.getElementById("stalker"); | |
var div = document.createElement("div"); | |
stalker.parentNode.insertBefore(div, stalker); | |
var child; | |
while (child = stalker.firstChild) { | |
stalker.removeChild(child); | |
div.appendChild(child); | |
} | |
stalker.parentNode.removeChild(stalker); | |
div.setAttribute("id", "stalker"); | |
} catch(e) { | |
alert("Error: "+e); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment