您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Auto filter Nyaa searches to show only English translated results.
// ==UserScript== // @name Nyaa Filter English Translated Only // @description Auto filter Nyaa searches to show only English translated results. // @require http://code.jquery.com/jquery-3.1.0.slim.min.js // @require https://cdnjs.cloudflare.com/ajax/libs/markdown-it/8.3.1/markdown-it.min.js // @include http*://nyaa.si/* // @license MIT // @grant GM_xmlhttpRequest // @run-at document-start // @version 1 // @namespace https://greasyfork.org/users/1466117 // ==/UserScript== var url = $(location).attr('href'); var c = getUrlParameter('c'); if (c == '0_0') { url = url.replace('c=0_0', "c=1_2") window.location.replace(url); redirecting = true; } function getUrlParameter(sParam) { var sPageURL = decodeURIComponent(window.location.search.substring(1)), sURLVariables = sPageURL.split('&'), sParameterName, i; for (i = 0; i < sURLVariables.length; i++) { sParameterName = sURLVariables[i].split('='); if (sParameterName[0] === sParam) { return sParameterName[1] === undefined ? true : sParameterName[1]; } } }