您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Fix the sort by top issues found on voat.co
// ==UserScript== // @name Voat Fixer // @version 1.1 // @description Fix the sort by top issues found on voat.co // @author https://voat.co/user/Tempo // @match https://voat.co/v/*/top?time=* // @grant none // @namespace http://tampermonkey.net/ // ==/UserScript== 'use strict'; jQuery(document).ready(function(){ if (location.search.indexOf("?time=") > -1) { if (location.search.indexOf("&page=") > -1) { var currentPage = parseInt(location.search.replace('?time=all&page=','')); var nextPage = currentPage + 1; var prevPage = currentPage - 1; $('a[rel=next]').attr("href", location.origin+location.pathname+"?time=all&page="+nextPage); if (currentPage > 1) { $('a[rel=prev]').attr("href", location.origin+location.pathname+"?time=all&page="+prevPage); } else { $('a[rel=prev]').attr("href", location.origin+location.pathname+"?time=all"); } } else { $('a[rel=next]').attr("href", location.href+"&page=1"); } } });
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址