GeoGuessr Bigger Map on Map-Maker

Enables the user to have a bigger map when using the map-maker // It also hides the Search Bar and the Sidebar when using the map-maker

当前为 2019-08-12 提交的版本,查看 最新版本

// ==UserScript==
// @name         GeoGuessr Bigger Map on Map-Maker
// @namespace    https://bitbucket.org/MrAmericanMike/
// @version      0.1
// @description  Enables the user to have a bigger map when using the map-maker // It also hides the Search Bar and the Sidebar when using the map-maker
// @author       MrAmericanMike
// @include      /^(https?)?(\:)?(\/\/)?([^\/]*\.)?geoguessr\.com\/map-maker($|\/.*)/
// @grant        none
// @run-at       document-start
// ==/UserScript==

function addGlobalStyle(css) {
    var head, 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);
}

addGlobalStyle (`

#js__search{
	display: none;
}

.sidebar{
	display: none;
}

.main{
	padding-left: 0px;
}

.editor__locations{
	height: 800px;
}

.grid-fluid{
	max-width: 1840px;
}

.editor__location-info{
	width: 705px;
}

.editor__streetview{
	height: 500px;
}

`);