您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Create a bookmark link button at the bottom of every bookmark full blurb
// ==UserScript== // @name [AO3] Bookmark links // @namespace http://tampermonkey.net/ // @version 1.0 // @description Create a bookmark link button at the bottom of every bookmark full blurb // @grant none // @license MIT // @match *://*.archiveofourown.org/* // ==/UserScript== (function() { 'use strict'; if (window.location.href.match('/users/') && document.querySelectorAll('li.bookmark.blurb').length) { for (const b of document.querySelectorAll('li.bookmark.blurb')) { if (!b.querySelectorAll('.actions[role="navigation"]').length) { let ul = document.createElement('ul') ul.className = 'actions' ul.setAttribute('role','navigation') b.appendChild(ul) } let ul = b.querySelector('.actions[role="navigation"]'), li = document.createElement('li'), a = document.createElement('a') a.textContent = 'Link' a.href = '/bookmarks/' + b.id.split('_')[1] li.appendChild(a) ul.appendChild(li) b.appendChild(ul) } } })();