您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Steam Cloudsave for store webpage.
当前为
// ==UserScript== // @name Steam Cloudsave // @namespace http://tampermonkey.net/ // @version 1.0 // @description Steam Cloudsave for store webpage. // @author WK // @match https://store.steampowered.com/app/* // @icon https://www.google.com/s2/favicons?sz=64&domain=steamcommunity.com // @grant none // @license MIT // ==/UserScript== (function() { function prepend(element) { var firstChild = document.body.firstChild; document.body.insertBefore(element, firstChild); } var url = location.href; var match = url.match(/app\/(\d+)\//); if (match) { var appId = match[1]; console.log(appId); } function getBrowserLanguage() { let language = navigator.language || navigator.userLanguage; if (!language) { language = 'en-US'; } return language; } const language = getBrowserLanguage(); var text = "🔃 Cloudsave"; if(language=="zh-CN"){ text = "🔃 云存档"; }else if(language=="zh-TW"){ text = "🔃 雲端"; } var element = document.createElement("div"); element.innerHTML = "<a id='loadPwd'href='https://store.steampowered.com/account/remotestorageapp?appid="+appId+"&index=0'target='_blank' style='position: absolute;top: 10px;right: 50px;z-index:999;background: black;color:white;'>"+text+"</button>"; prepend(element); })();