GeoGuessr Ultimate Script - One Script to rule them all - WORK IN PROGRESS
当前为
// ==UserScript==
// @name GeoGuessr Ultimate Script
// @version 0.2
// @description GeoGuessr Ultimate Script - One Script to rule them all - WORK IN PROGRESS
// @author MrAmericanMike
// @include /^(https?)?(\:)?(\/\/)?([^\/]*\.)?geoguessr\.com($|\/.*)/
// @grant none
// @run-at document-start
// @namespace https://greasyfork.org/en/scripts/406060-geoguessr-ultimate-script
// ==/UserScript==
console.log("GeoGuessr Ultimate Script");
// MODULES // COMMENT OUT THE MODULES YOU DON'T NEEN BY ADDING '//' IN FRONT: EXAMPLE: //doRemoveRightBar();
// REMOVE BOTTOM WHITE BAR WHILE PLAYING A MAP
doRemoveBottomBar();
// REMOVE RIGHT WHITE BAR ON ROUND RESULTS SCREEN
doRemoveRightBar();
// NO NEED TO EDIT BELOW THIS LINE
function doRemoveBottomBar(){
addGlobalStyle(`
.game-layout__in-game-ad {
display: none;
}
`);
}
function doRemoveRightBar(){
addGlobalStyle(`
.result__right {
display: none;
}
`);
}
// GLOBAL STYLES INJECTOR
function addGlobalStyle(css) {
let head;
let style;
head = document.getElementsByTagName('head')[0];
if (!head) { return; }
style = document.createElement('style');
style.type = 'text/css';
style.innerHTML = css.replace(/;/g, ' !important;');
head.appendChild(style);
}