您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Creates a toggleable gallery for RYM lists.
当前为
// ==UserScript== // @name Gallery Mode for Lists - RateYourMusic // @namespace Violentmonkey Scripts // @match https://rateyourmusic.com/list/* // @grant none // @version 1.1 // @author ~iN008 // @description Creates a toggleable gallery for RYM lists. // ==/UserScript== //Adds button to the right of likes, creates a gallery section hidden by default $(".fav1.subtext").after("<div class='gallerybutton btn btn_small blue_btn' style=margin-left:1em>Toggle Gallery</div>"); $("div.row").append("<clear/><div class=gallery style=display:none;width:100%;clear:both;padding:1.5em;text-align:center></div>"); //Populates gallary with list images, removes any blanks and spaces accordingly $("td.list_art").clone().removeClass('list_art').addClass('gallerymode').appendTo("div.gallery"); $("td.gallerymode:empty").remove(); $(".gallerymode").find("br", "span:empty").remove(); $(".gallerymode").children().width("150px"); $("td.gallerymode").each(function(){ so_class = $(this).attr("class"); so_val = $(this).html(); so_new = $("<span style=display:inline-block;margin-right:0.3em;width:150px></span>").html(so_val); if (so_class.length > 0) { $(so_new).attr("class",so_class); } $(this).replaceWith(so_new); }); //Toggle function $("div.gallerybutton").click(function() { $("div.gallery").toggle(); });
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址