OnlyRev

Revive Filter

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 or Violentmonkey 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         OnlyRev
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Revive Filter
// @author       Zero [2669774]
// @match        https://www.torn.com/hospitalview.php*
// @license MIT

// ==/UserScript==
function hideRev(){
    var rev = document.querySelector('#mainContainer > div.content-wrapper.m-left20.left.spring > div.userlist-wrapper.hospital-list-wrapper > ul').getElementsByTagName('li');
    var el;
        if(rev.length >1){
            for (let i = 0;i<rev.length;i+=2){
                el = rev[i];
                if (el.innerHTML.includes('reviveNotAvailable')){
                    el.style.display = 'none';
                }
            }
        }
        else{
            setTimeout(hide, 100);
        }
}

(function() {
    'use strict';
    const button = `<button id="onlyRev" style="color: var(--default-blue-color); cursor: pointer; margin-right: 0; font-size:30px;">OnlyRev</button>`;
    $('div.content-title > h4').append(button);
    $('#onlyRev').on('click',hideRev);
})();