您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
点击Pocket列表项的查看原始文档链接时,直接访问网址而不经由Pocket网站的重定向
当前为
// ==UserScript== // @namespace KiohPun // @name 移除Pocket外链重定向 // @description 点击Pocket列表项的查看原始文档链接时,直接访问网址而不经由Pocket网站的重定向 // @version 1.2 // @match https://app.getpocket.com/* // @grant none // ==/UserScript== const deRedirect = ({ addedNodes: [node] }) => { if (node.nodeName === 'ARTICLE') { const link = node.querySelector('cite > a'); link.href = new URLSearchParams(new URL(link.href).search).get('url'); } }; const observer = new MutationObserver((records) => { records.forEach(deRedirect); }); observer.observe(document.getElementById('root'), { childList: true, subtree: true, });