您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Accès à la dernière page de chaque topic par son icône
// ==UserScript== // @name JvLastPage // @namespace // @description Accès à la dernière page de chaque topic par son icône // @include http://www.jeuxvideo.com/forums/0-* // @version 0.0.1.20140719093338 // ==/UserScript== function surf(event) { var nb = this.parentNode.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.innerHTML; nb = parseInt(nb / 20 + 1); var url = this.parentNode.nextSibling.nextSibling.getElementsByTagName("a")[0].href; if (event.which == 1) url = url.replace(/(\/1\-[0-9]+\-[0-9]+\-)[0-9]+(\-)/g, "$1" + nb + "$2"); else url = url.replace(/\/1\-([0-9]+\-[0-9]+\-)[0-9]+(\-[^"]+)/g, "/3-" + "$1" + nb + "$2" + "#form_post"); window.location.href = url; return false; } function main() { var tr = document.getElementById('liste_topics').getElementsByTagName("tr"); for (var i = 1; i < tr.length; i++) { var img = tr[i].getElementsByTagName("td")[0].getElementsByTagName("img")[0]; img.title = "Left : Dernière page - Right : Répondre"; img.setAttribute("oncontextmenu", "return false;"); img.style.cursor = "pointer"; img.addEventListener("mouseup", surf, false); } } main();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址