Better GUI (Geoguessr)

A peronal set of CSS rules that remove clutter and make the game look nicer.

当前为 2024-09-05 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         Better GUI (Geoguessr)
// @namespace    alienperfect
// @version      2024-09-05
// @description  A peronal set of CSS rules that remove clutter and make the game look nicer.
// @author       Alien Perfect
// @match        https://www.geoguessr.com/*
// @icon         https://www.google.com/s2/favicons?sz=32&domain=geoguessr.com
// @grant        GM_addStyle
// @run-at       document-start
// ==/UserScript==

GM_addStyle(`
/* General */
/* Underline links on hover */
a:hover {text-decoration: underline !important}

/* Space items in profile dropdown */
[class*="profile_profileLink__"] {padding: .75rem !important}
a[href*="signout"] {margin-top: 1rem}

/* Hide loading animation (games load sligthly faster) */
[class*="fullscreen-spinner"] {display: none !important}

/* Hide button glint */
[class*="button"] {background-image: none !important}

/* Hide slant on elements */
* {font-style: normal !important}
div[class*="slanted"] {transform: none !important}
div[class*="slanted"]::before {transform: none !important}
[class*="pop-out-main-menu"] {transform: none !important}
[class*="pop-out-main-menu_wrapper__"] {transform: none !important}
[class*="map-card"] {font-style: normal !important; transform: none !important}
[class*="map-card"] > * {transform: none !important}

/* Improved ongoing games */
[class*="current_image__"] * [class*="styles_root__"] {border-radius: 100% !important}
[class*="current_gameListItem"] > [class*="current_actions"] {flex-direction: row-reverse !important}

/* Allow selection of all text */
* {user-select: text !important}

/* Remove animation in compare stats in profile */
[class*="user-stats-overview_youBox__"] {animation: none !important}
[class*="user-stats-overview_mainValueAnimation__"] {animation: none !important; transition: none !important}


/* Bloat */
/* Hide avatars in profile */
[class*="avatarWrapper"], [class*="animated-player-item_avatarContainer__"] {display: none !important}
[class*="profile-header_headerContent__"] {justify-content: space-between !important}

/* Hide coins */
[data-qa="profile-coin-count"] {display: none !important}

/* Hide promo deals */
[class*="promo"], [class*="primary-menu_tagWrapper__"] {display: none !important}

/* Hide missions */
[class*="header_context__"] > [class*="slanted-button_container__"] {display: none !important}

/* Hide trophies */
[class*="profile-feats_feats__"] {display: none !important}
[class*="profile-header_actions__"]:has(+ a[href*="avatar"]) {display: none !important}

/* Hide friend suggestions */
[class*="friend-list_friendsMeta"] {display: none !important}
[class*="friend-list_container__"] {padding: 0 !important}

/* Cleaner main page */
[class*="slanted-wrapper_variantGrayTransparent"] {--variant-background-color: none !important}
[class*="signed-in-start-page_backgroundWrapper__"] {display: none !important}
[class*="signed-in-start-page_globetrotterStartPage__"] {display: none !important}


/* In-game */
/* Transparent map status bar */
[class*="status_inner__"] {background-color: rgb(0 0 0 / 25%) !important; border-bottom-left-radius: 0.5rem !important; border-top-left-radius: 0.5rem !important}
[class*="slanted-wrapper_variantPurple__"] {--variant-background-color: unset !important; --variant-box-shadow: unset !important}
[class*="status_inner__"] > * [class*="status_label__"] {color: rgb(255 255 255 / 95%) !important}
[class*="status_inner__"] > * [class*="status_value__"] {color: rgb(255 255 255 / 95%) !important}
[class*="slanted-wrapper_withShadow"] {--variant-filter: drop-shadow(0 0.3rem 0.4rem rgba(0,0,0,.4)) !important}

/* New compass more transparent */
[class*="compassContainer"] {background-color: rgb(0 0 0 / 25%) !important}

/* Hide zoom controls */
[class*="styles_controlGroup__"] {display: none !important}
[class*="guess-map_zoomControls__"] {display: none !important}

/* Hide friend chat */
[class*='friend-chat-in-game-button_root__'] {display: none !important}

/* Hide Google copyright, logo, shortcuts */
[class$="gmnoprint"], [class$="gm-style-cc"], img[src*="google-logo"] {display: none !important}

/* Hide logo */
img[alt="GeoGuessr"] {display: none !important}

/* Hide ads */
[class*="result-layout_adWrapper__"] {display: none !important}

/* Faster map opening animation */
[data-qa='guess-map'] {transition: opacity .04s ease, width .04s ease, height .04s ease !important}

/* Reduce pin opacity on hover */
[class*="map-pin_mapPin"]:not([data-pano]):hover {opacity: 15%}
`);