您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Replaces the "last" links in the forum list with "first" links and changes the main links to link to the last page.
// ==UserScript== // @name [Konachan / yande.re] Forum List: Default to Last Page // @namespace Zolxys // @description Replaces the "last" links in the forum list with "first" links and changes the main links to link to the last page. // @include /^https?://konachan\.(com|net)/forum/?($|\?|#)/ // @include /^https?://yande\.re/forum/?($|\?|#)/ // @version 1.1 // ==/UserScript== var t = document.getElementById('forum').getElementsByTagName('table')[0].getElementsByTagName('td'); for (var i = 0; i < t.length; ++i) { var a = t[i].getElementsByTagName('a'); if (a.length == 2) if (a[1].innerHTML.trim() == 'last') { var h = a[0].href; a[0].href = a[1].href; a[1].href = h; a[1].innerHTML = 'first'; } }