您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
moves the AO3 inspired by links to the top of the page
// ==UserScript== // @name See Podfic First // @version 0.1.1 // @description moves the AO3 inspired by links to the top of the page // @author GodOfLaundryBaskets // @include http*://archiveofourown.org/*works* // @require http://code.jquery.com/jquery-3.5.1.min.js // @grant none // @license MIT /* globals jQuery, $, waitForKeyElements */ // @namespace https://greasyfork.org/users/1164278 // ==/UserScript== function addPodficsOnSamePage() { const children = Array.from(document.querySelectorAll('div.children')); if (!children.length) { return false; } $("div.notes").first().append("<br />").append(children); $("p.jump").first().remove(); return true; } function addPodficsAtEndOfWork() { const jumpBlock = Array.from(document.querySelectorAll('p.jump')); if (!jumpBlock.length || !jumpBlock[0].textContent.includes("other works inspired by this one")) { return false; } $(jumpBlock).css("font-weight", "bold") $(jumpBlock).css("background-color", "#e2e2e2");; } $( document ).ready(function() { 'use strict'; var added = addPodficsOnSamePage(); if(!added) { addPodficsAtEndOfWork() } });