您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Add a View Last Post link to the 'Your Posts' page.
当前为
// ==UserScript== // @name View Last Post on 'Your Posts' // @description Add a View Last Post link to the 'Your Posts' page. // @author Jawe - http://www.hackforums.net/member.php?action=profile&uid=2219785 // @include *hackforums.net/search.php* // @version 1.0 // @require http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js // @namespace https://greasyfork.org/users/24272 // ==/UserScript== var pageText = $('body').html().toString(); var foundText = pageText.indexOf("Last Post"); if (foundText == -1) { $(".trow1 a[href*='showthread.php?tid=']").each(function(e) { uid = $(this).attr("href"); if (uid.indexOf('pid') > -1) {} else { $(this).after("<a href=" + uid + "&action=lastpost><b><u>View Last Post</u></b></a>"); $(this).after(" || "); } }) $(".trow2 a[href*='showthread.php?tid=']").each(function(e) { uid = $(this).attr("href"); if (uid.indexOf('pid') > -1) {} else { $(this).after("<a href=" + uid + "&action=lastpost><b><u>View Last Post</u></b></a>"); $(this).after(" || "); } }) }