您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
open a google search window for the current artist and album
当前为
// ==UserScript== // @name RYM google current album // @description open a google search window for the current artist and album // @namespace http://greasyfork.icu/en/scripts/5966-rym-google-current-album // @include http://rateyourmusic.com/release/* // @version 1.6 // @grant none // ==/UserScript== var btn1 = $('<button>Google This</button>').click(function () { var tit = $(".album_title").text().trim(); var name = $($(".artist")[0]).text(); console.log(name); window.open('https://google.com?q="' + tit + '" "' + name + '"','_blank'); }); $($(".album_title").siblings(0)[0]).append(btn1); var btn2 = $('<button>Google Blog This</button>').click(function () { var tit = $(".album_title").text().trim(); var name = $(".artist").text(); console.log(name); window.open('https://google.com?q="' + tit + '" "' + name + '"&tbm=blg','_blank'); }); $($(".album_title").siblings(0)[0]).append(btn2);