您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Oglaf has stories which may have 1 or more pages. The "Next Page" button takes you to the next story if there isn't a next page, which is a bit unclear.
当前为
// ==UserScript== // @name oglaf NextPage clarifier // @namespace https://greasyfork.org/users/2226-adam // @description Oglaf has stories which may have 1 or more pages. The "Next Page" button takes you to the next story if there isn't a next page, which is a bit unclear. // @include htt*://oglaf.com/* // @version 1.0 // @grant none // @require http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js // ==/UserScript== function main() { var navlinks = $('[id=nav]'); var nextPageLink = navlinks.children()[2]; var nextStoryLink = navlinks.children()[4]; if(nextPageLink.href == nextStoryLink.href) { var NoNextPageElm = document.createElement('div'); NoNextPageElm.id="nnx"; NoNextPageElm.className="nav_ro"; nextPageLink.parentNode.replaceChild(NoNextPageElm, nextPageLink); } } $(document).ready(main);