您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Adds the Liked Maps button to the singleplayer page for easier access to your liked maps.
// ==UserScript== // @name Convenient Likes for GeoGuessr // @version 0.1.0 // @author Han75 // @license MIT // @description Adds the Liked Maps button to the singleplayer page for easier access to your liked maps. // @require http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js // @require https://greasyfork.org/scripts/383527-wait-for-key-elements/code/Wait_for_key_elements.js?version=701631 // @match https://www.geoguessr.com/* // @icon https://www.google.com/s2/favicons?sz=64&domain=geoguessr.com // @namespace https://greasyfork.org/en/users/973646 // ==/UserScript== const element = `<div class="dynamic-layout_slotWrapper__QqM3S" data-rank="Secondary" data-primary-slots="1" data-secondary-slots="3" data-tertiary-slots="2" data-right-aligned-secondary-slots="true" style="max-height: 5rem"><div class="menu-item-animator_container__yUWp7 menu-item-animator_moveInScale__VPaFf" data-qa="menu-item-animator-Secondary-2" style="animation-duration: 220ms;"><a class="game-menu-button_link__08qnf" href="/me/likes"><div class="game-mode-card_container__bsswf" data-rank="Secondary"><div class="game-mode-card_logoWrapper__8CTWh" data-rank="Secondary"><picture class="logo_picture__D3DZb"><source srcset="https://i.ibb.co/2ZTwNFw/liked-Maps-Tab.png" type="image/png"><img width="720" height="320" src="https://i.ibb.co/2ZTwNFw/liked-Maps-Tab.png" alt="Streaks" class="logo_root__8odM2 logo_sizeMedium___Wdg2" https:="" i.ibb.co=""></picture></div><div class="singleplayer_cardBackground__ne75Z singleplayer_placeholderCardBackground__hvzvF"></div></div></a></div></div>`; waitForKeyElements(".dynamic-layout_container__jaxgg", function(){ if (window.location.href === "https://www.geoguessr.com/singleplayer") { document.querySelector(".dynamic-layout_container__jaxgg").firstChild.innerHTML += element; document.querySelector(".dynamic-layout_container__jaxgg").firstChild.style.flexDirection = "column"; } });