Neopets - Lab Ray - Safety First

Hide specific pets from the lab ray page so no accidental zapping!

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         Neopets - Lab Ray - Safety First
// @namespace    https://greasyfork.org/en/users/798613
// @version      0.1
// @description  Hide specific pets from the lab ray page so no accidental zapping!
// @author       Mandi (mandanarchi)
// @match        http://www.neopets.com/lab2.phtml
// @icon         https://www.google.com/s2/favicons?domain=neopetsclassic.com
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    const DO_NOT_ZAP = ['petname1', 'petname2'];


    // this deals with Retail
    window.addEventListener('load', function() {
        $('form[action="process_lab2.phtml"] input').each( function() {
            if ($.inArray( $(this).val(), DO_NOT_ZAP) !== -1 ) {
                $(this).parent().remove();
            }
        });
    });
})();