您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Automatically use ProtonMail's old interface.
当前为
// ==UserScript== // @name Old ProtonMail // @version 1.0 // @author openpaige // @description Automatically use ProtonMail's old interface. // @namespace https://gitlab.com/openpaige-user-scripts // @icon https://gitlab.com/openpaige-user-scripts/old-protonmail/-/raw/main/icon.png // @match *://mail.protonmail.com/* // @run-at document-start // ==/UserScript== function matchURL(url) { return !!url.match(/^(http(s?):\/\/)(mail.protonmail.com)/gim); } function rewriteURL(url) { return 'https://old.protonmail.com/login' + url.split('protonmail.com').pop(); } url = window.location.href; if ( matchURL(url) ) { window.location.assign(rewriteURL(url)); }