您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Fix Asset Thumbnail in Old Roblox Marketplace Menu
- // ==UserScript==
- // @name Fix Asset Thumbnail [Roblox]
- // @namespace http://tampermonkey.net/
- // @version 0.2
- // @description Fix Asset Thumbnail in Old Roblox Marketplace Menu
- // @author Megumint
- // @match https://www.roblox.com/library/*
- // @grant none
- // @noframes
- // @license MIT
- // ==/UserScript==
- (function() {
- 'use strict';
- function getThumbnail(ID,onSuccess){
- $.ajax({
- url: `https://thumbnails.roblox.com/v1/assets?assetIds=${ID}&returnPolicy=PlaceHolder&size=250x250&format=png`,
- type: "GET",
- success: function (res) {
- if(res.data[0].state == "Completed"){
- onSuccess(res.data[0])
- }
- }
- });
- }
- let AssetId = Number(($("html").find("link[rel='canonical']").attr("href").match(/\/(catalog|library)\/(\d+)\//) || ["", "", 0])[2])
- getThumbnail(AssetId,(Thumbnail) => {
- document.getElementsByClassName("thumbnail-span")[0].childNodes[0].setAttribute("src",Thumbnail.imageUrl)
- })
- })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址