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
当前为
// ==UserScript==
// @name GeoGuessr Bigger Map on Map-Maker
// @namespace https://bitbucket.org/MrAmericanMike/
// @version 0.2
// @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\/me/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;
}
`);