-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsource.user.js
42 lines (33 loc) · 1.73 KB
/
source.user.js
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// ==UserScript==
// @name Gamepro5's Fandom Wiki Fixer
// @namespace http://tampermonkey.net/
// @version 0.1
// @description A very simple script that removes bloat and gross stuff from the tumor that is fandom wikis.
// @author Gamepro5.com
// @match https://*.fandom.com/wiki/*
// @icon https://www.google.com/s2/favicons?domain=fandom.com
// @grant none
// ==/UserScript==
(function() {
'use strict';
function deleteNode(node) {
if (node) {
node.parentNode.removeChild(node);
};
};
deleteNode(document.getElementsByClassName("global-navigation")[0]);
deleteNode(document.getElementsByClassName("wds-global-footer")[0]);
deleteNode(document.getElementsByClassName("mcf-wrapper")[0]);
deleteNode(document.getElementsByClassName("page-side-tools")[0]);
document.getElementsByClassName("main-container")[0].style.marginLeft = "0px";
document.getElementsByClassName("main-container")[0].style.width = "100%";
document.getElementsByClassName("fandom-sticky-header")[0].style.left = "0px";
document.getElementsByClassName("resizable-container")[0].style.width = "100%";
document.getElementsByClassName("resizable-container")[0].style.maxWidth = "100%";
document.getElementsByClassName("wiki-tools__search")[0].style.paddingLeft = "50px";
document.getElementsByClassName("wiki-tools__search")[0].style.paddingRight = "50px";
document.getElementsByClassName("wiki-tools__search")[1].style.paddingLeft = "50px";
document.getElementsByClassName("wiki-tools__search")[1].style.paddingRight = "50px";
deleteNode(document.getElementById("WikiaBarWrapper"));
deleteNode(document.getElementsByClassName("page__right-rail")[0]);
})();