您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Mirror links on archive.is for Voat submission links
// ==UserScript== // @name Voat Archive // @description Mirror links on archive.is for Voat submission links // @namespace https://voat.co/user/InsistentCooperative // @match *://*.voat.co/* // @version 1.1 // @grant none // @license MIT // @license WTFPL // @license Public Domain // ==/UserScript== for (let hold of document.querySelectorAll('.submission:not(.self) a.title[href]:not([href*="://archive.is/"]) ~ .domain')) { let orig = hold.parentNode.querySelector('a.title'); let href = 'https://archive.is/?run=1&url=' + encodeURIComponent(orig.href); // from their bookmarklet hold.innerHTML += ' <span class="_gm_voat_archive">[<a href="' + href + '" class="_gm_voat_archive">archive</a>]</span>'; }