forked from blankdvth/eGOScripts
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Enhance_Ads.ts
26 lines (24 loc) · 1.04 KB
/
Enhance_Ads.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// ==UserScript==
// @name EGO Ad Resize
// @namespace https://github.com/MSWS/eGOMonkey
// @downloadURL %DOWNLOAD%
// @version %VERSION%
// @description Removes whitespace left over from ads on the EdgeGamers website. This is to be used in combination with an adblocker (such as U-Block Origin).
// @author blank_dvth, Skle, MSWS
// @match https://www.edgegamers.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=edgegamers.com
// @grant none
// ==/UserScript==
(function () {
// Remove banners
const banners = [...document.querySelectorAll("div[style$=\"height:90px;\"]")];
for (const banner of banners)
banner.remove();
// Remove sidebar
const mainBody = document.querySelector("div .p-body-main--withSidebar");
mainBody?.classList.replace("p-body-main--withSidebar", "p-body-main");
const sideBar = document.querySelector(".p-body-sidebar");
sideBar?.remove();
const sideBarCol = document.querySelector(".p-body-sidebarCol");
sideBarCol?.remove();
})();