scat.gold fixes

fix the dead dood url + remove the useless players

ของเมื่อวันที่ 19-01-2025 ดู เวอร์ชันล่าสุด

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey, Greasemonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

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        scat.gold fixes
// @description fix the dead dood url + remove the useless players
// @match       https://scat.gold/*
// @version     0.1
// @namespace   https://greasyfork.org/users/1424882
// ==/UserScript==

setTimeout(() => {
    // remove upper dead space
    document.querySelector('#content').style.position = 'relative';
    document.querySelector('#content').style.top = '-460px';
    document.querySelector('#content').style.zIndex = '1';
    // remove membership nag
    document.querySelector('.ihc-locker-wrap').style.display = 'none';
    // remove useless players
    document.querySelector('.responsive-tabs__list').style.display = 'none';
    document.querySelector('#tablist1-panel1').style.display = 'none';
    // show dood tab
    document.querySelector('#tablist1-panel2').style.display = '';
    // rewrite dood tld
    document.querySelector('iframe').src = (document.querySelector('iframe').src).replace('.work/','.la/');
}, 1000); // add more time if connection slow