Difference between revisions of "Not So Important"
From James Dooley's Wiki
(Created page with "==Overview== ==Script== <code>[javascript,n] // ==UserScript== // @name Not So Important // @namespace http://jamesdooley.us // @description Remove important...") |
(→Script) |
||
| Line 10: | Line 10: | ||
// @description Remove important tickets from HD view | // @description Remove important tickets from HD view | ||
// @include https://hd.int.liquidweb.com/priority/ | // @include https://hd.int.liquidweb.com/priority/ | ||
| + | // @include https://adminhd.liquidweb.com/priority/ | ||
// ==/UserScript== | // ==/UserScript== | ||
Revision as of 13:49, 3 May 2011
Overview
Script
[javascript,n]
// ==UserScript==
// @name Not So Important
// @namespace http://jamesdooley.us
// @description Remove important tickets from HD view
// @include https://hd.int.liquidweb.com/priority/
// @include https://adminhd.liquidweb.com/priority/
// ==/UserScript==
var hdform = document.getElementsByTagName('form'); var trlist = hdform[3].getElementsByTagName('tr');
for (var i=0; i < trlist.length; i++) { var imgele = trlist[i].getElementsByTagName('img') if (imgele.length > 0) { notsoimportant(imgele) } }
function notsoimportant (imgelement) { if (imgelement[0].alt == "auth-importantpriority") { var style = trlist[i].style style.display = "none" } return true; }