您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Asks to switch to user 1 when using Google Docs with user 0
// ==UserScript== // @name Docs Redirect // @version 0.2 // @description Asks to switch to user 1 when using Google Docs with user 0 // @author pooroll // @include https://docs.google.com/document/u/* // @namespace https://gf.qytechs.cn/users/157849 // ==/UserScript== (function() { 'use strict'; window.addEventListener ("load", LocalMain, false); function LocalMain () { setTimeout(function() { var path0 = window.location.pathname; var path1 = path0.substring(0, 13); if (path1 === "/document/u/0"){ //var pathle = path0.length - 1; //var path2 = path0.substring(15, pathle); //alert(path2); var r = confirm("Redirect to Account 2?"); if (r === true) { window.location.replace("https://docs.google.com/document/u/1/"); } else { } } }, 0); } // Your code here... })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址