您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Convert a new-style multireddit to an old-style link
// ==UserScript== // @name Multireddit to link // @namespace https://nucular.github.io // @version 0.2 // @description Convert a new-style multireddit to an old-style link // @author nucular // @match https://www.reddit.com/*/m/* // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; $("<a></a>") .attr("href", "https://www.reddit.com/r/" + $(".titlebox.multi-details .subreddits li").map(function(i, li) { return $(li).find("a").attr("href").match(/\/r\/(.+)/)[1]; }).toArray().join("+") ) .attr("target", "__new") .css("margin-right", "12px") .append( $("<button>multilink</button>") ) .prependTo( $(".titlebox.multi-details .gray-buttons.settings .spacer") ); })();