您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
If you're using JPDBreader to review from the a vocab page in JPDB on mobile, tapping on a word to bring up the overlay causes the link to be followed. This script removes links from all JPDB deck pages. If you only want links removed from the All Vocab page, replace "https://jpdb.io/deck*" on line 6 with "https://jpdb.io/deck?id=gloabl"
// ==UserScript== // @name JPDB Link Remover // @namespace uchisen.com // @version 2024-11-04 // @description If you're using JPDBreader to review from the a vocab page in JPDB on mobile, tapping on a word to bring up the overlay causes the link to be followed. This script removes links from all JPDB deck pages. If you only want links removed from the All Vocab page, replace "https://jpdb.io/deck*" on line 6 with "https://jpdb.io/deck?id=gloabl" // @author Togeffet // @match https://jpdb.io/deck* // @icon https://www.google.com/s2/favicons?sz=64&domain=jpdb.io // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; const vocabulary = document.getElementsByClassName('vocabulary-spelling'); for (let i = 0; i < vocabulary.length; i++) { const link = vocabulary[i].getElementsByTagName('a')[0]; link.removeAttribute('href'); // Remove link link.style.cursor = "default"; // Change cursor to default (just felt better imo) link.style.borderBottom = 'none'; // Remove link border on hover, since it's not a link anymore } })();