Nexopia Queue Identifier

By keesc Last update Apr 28, 2009 — Installed 61 times.

There are 1 previous version of this script.

// ==UserScript==
// @name           Nexopia Queue Identifier
// @namespace      http://users.nexopia.com/uploads/1552/1552560/Greasemonkey/
// @description    Helps remembering what you're modding on Nexopia.
// @author         Kees Couprie
// @include        http://www.nexopia.com/moderate/queue/*
// @include        https://www.nexopia.com/moderate/queue/*
// ==/UserScript==

   	var newElement, thisInput, queue;
    var e = document.getElementsByTagName('input');
    
    if (/www.nexopia.com\/moderate\/queue\/21/.test(window.location.href)) {
        queue="Gallery";
    } else if (/www.nexopia.com\/moderate\/queue\/4/.test(window.location.href)) {
        queue="Questionable";
    } else if (/www.nexopia.com\/moderate\/queue\/2/.test(window.location.href)) {
        queue="Sign pics";
    } else if (/www.nexopia.com\/moderate\/queue\/1/.test(window.location.href)) {
        queue="Pictures";
    } else {
        queue="Unknown";
    }
    
    for (var i=0; i<e.length ;i++)
    {
    	  thisInput=e[i];
        if (thisInput.type == 'radio' && thisInput.value == 'y')
       {
        	//alert(thisInput.value);
        	  newElement = document.createTextNode(queue);
        	  thisInput.parentNode.insertBefore(newElement, thisInput);
        	  newElement = document.createElement('p');
        	  thisInput.parentNode.insertBefore(newElement, thisInput);
        }
    }