您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Tampermonkey keeps asking us to select an account when we open the browser. But this script by Jack'lul will do it for us!
当前为
// ==UserScript== // @name Tampermonkey Google Drive sync fix [adopted] // @namespace https://github.com/Tampermonkey/tampermonkey/issues/904 // @version 0.1.2 // @description Tampermonkey keeps asking us to select an account when we open the browser. But this script by Jack'lul will do it for us! // @author jacklul <jacklul.github.io> // @license ISC // @match https://accounts.google.com/signin/oauth*tampermonkey* // @match https://accounts.google.com/o/oauth2/v2/auth*tampermonkey* // @grant none // ==/UserScript== (function() { 'use strict'; let tryClick = setInterval(function() { const el = document.querySelector('div[data-authuser="0"] #profileIdentifier'); if (el) { const isBusy = document.querySelector('div[role="presentation"][tabindex="-1"]'); const hasBackButton = document.querySelector('div[role="button"]#next'); if (isBusy) { console.log('Page is busy...'); } // Close page if there was "unknown error" if (hasBackButton) { window.close(); } // Try clicking until page gets busy if (!isBusy) { console.log('Clicking...'); el.click(); } } }, 500); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址