Filtering Petio

Filter out available/requested items

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         Filtering Petio
// @namespace    http://tampermonkey.net/
// @version      0.5
// @description  Filter out available/requested items
// @author       u/lifthrasir6
// @match        http://192.168.2.6:7777/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    let i=0;
    function init() {
        console.log("init")
        i++
        for (let item of document.getElementsByClassName("on-server")) {
            //item.style.opacity = 0.05
            item.style.display = "none"
        }
        for (let item of document.getElementsByClassName("requested")) {
            //item.style.opacity = 0.05
            item.style.display = "none"
        }
        if(i<5){
            setTimeout(init, 1500);
        }
    }

    setTimeout(init, 1000);

})();