您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
add a link from the release page to search wikipedia for that release
当前为
// ==UserScript== // @name RYM: Wikipedia Search // @description add a link from the release page to search wikipedia for that release // @match https://rateyourmusic.com/release/* // @match http://rateyourmusic.com/release/* // @version 1.0 // @require http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js // @namespace http://greasyfork.icu/users/734885 // ==/UserScript== const td = '<td colspan="2" style="font-size:0.9em;font-weight:normal;color:var(--mono-5);">' artist = $(".album_info a.artist").text(); title = $(".page_section .album_title")[0].childNodes[0].nodeValue.trim(); searchterms = encodeURIComponent(artist + " " + title); data = '<th class="info_hdr">Wiki</th>' data += td + '<a target="_blank" href="https://en.wikipedia.org/?search='+searchterms+'">Search Wikipedia for this release</a>' + '</td>' $(".album_info tbody tr:last").after("<tr>" + data + "</tr>");