您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Replace 61B Google Slides URLs with fast-rendering PDF links.
// ==UserScript== // @name 61B Slides Downloader // @namespace jimbo1qaz // @version 0.1 // @description Replace 61B Google Slides URLs with fast-rendering PDF links. // @author You // @match *://datastructur.es/* // @grant none // @run-at document-idle // ==/UserScript== (()=>{ 'use strict'; console.log('foo'); // before: https://docs.google.com/presentation/d/1ySYTxnvoHJc7_2U0L90WH3kx0toWA4vpNiIR2r1vqKU for (let el of document.getElementsByTagName("a")) { if (el.href.includes('docs.google.com/presentation')) { let tag = el.href.split('/')[5]; el.href = `https://docs.google.com/presentation/d/${tag}/export/pdf`; } else { console.log(el.href); } } })();