Greasy Fork

Disable Scope Lines for CS - SHELL SHOCKERS

Removes the black lines that are visible when you scope in

// ==UserScript==
// @name         Disable Scope Lines for CS - SHELL SHOCKERS
// @version      0.6
// @description  Removes the black lines that are visible when you scope in
// @author       wish?
// @run-at       document-start
// @license      MIT
// @grant        none
// @namespace    https://greasyfork.org/en/users/1361048
// @match        *://*.shellshock.io/*
// @match        *://*.shell.onlypuppy7.online/*
// @match        *://*.algebra.best/*
// @match        *://*.algebra.vip/*
// @match        *://*.biologyclass.club/*
// @match        *://*.deadlyegg.com/*
// @match        *://*.deathegg.world/*
// @match        *://*.eggboy.club/*
// @match        *://*.eggboy.xyz/*
// @match        *://*.eggcombat.com/*
// @match        *://*.egg.dance/*
// @match        *://*.eggfacts.fun/*
// @match        *://*.egghead.institute/*
// @match        *://*.eggisthenewblack.com/*
// @match        *://*.eggsarecool.com/*
// @match        *://*.geometry.best/*
// @match        *://*.geometry.monster/*
// @match        *://*.geometry.pw/*
// @match        *://*.geometry.report/*
// @match        *://*.hardboiled.life/*
// @match        *://*.hardshell.life/*
// @match        *://*.humanorganising.org/*
// @match        *://*.mathactivity.xyz/*
// @match        *://*.mathactivity.club/*
// @match        *://*.mathdrills.info/*
// @match        *://*.mathdrills.life/*
// @match        *://*.mathfun.rocks/*
// @match        *://*.mathgames.world/*
// @match        *://*.math.international/*
// @match        *://*.mathlete.fun/*
// @match        *://*.mathlete.pro/*
// @match        *://*.overeasy.club/*
// @match        *://*.risenegg.com/*
// @match        *://*.scrambled.tech/*
// @match        *://*.scrambled.today/*
// @match        *://*.scrambled.us/*
// @match        *://*.scrambled.world/*
// @match        *://*.shellshockers.club/*
// @match        *://*.shellshockers.life/*
// @match        *://*.shellshockers.site/*
// @match        *://*.shellshockers.us/*
// @match        *://*.shellshockers.world/*
// @match        *://*.shellshockers.xyz/*
// @match        *://*.shellsocks.com/*
// @match        *://*.softboiled.club/*
// @match        *://*.urbanegger.com/*
// @match        *://*.violentegg.club/*
// @match        *://*.violentegg.fun/*
// @match        *://*.yolk.best/*
// @match        *://*.yolk.life/*
// @match        *://*.yolk.rocks/*
// @match        *://*.yolk.tech/*
// @match        *://*.yolk.quest/*
// @match        *://*.yolk.today/*
// @match        *://*.zygote.cafe/*
// @match        *://*.shellshockers.best/*
// @match        *://*.eggboy.me/*
// ==/UserScript==
(function () {
	window.XMLHttpRequest = class extends window.XMLHttpRequest {
		constructor() {
			super(...arguments);
		}
		open() {
			if (arguments[1] && arguments[1].includes("js/shellshock.js")) this.scriptMatch = true;
			super.open(...arguments);
		}
		get response() {
			if (this.scriptMatch) {
				const patterns = {
					scope: /,this\.([A-Za-z]+)\.position\.z=2/,
				};

				let responseText = super.response;
				const scopeVar = patterns.scope.exec(responseText)[1];

				responseText = responseText.replaceAll(
					`this.${scopeVar}.applyFog=!1,this.${scopeVar}.layerMask=536870912,`,
					`this.${scopeVar}.applyFog=!1,this.${scopeVar}.layerMask=0,`
				);
				console.log("scope border", scopeVar);
				return responseText;
			}
			return super.response;
		}
	};
})();