Fix Asset Thumbnail [Roblox]

Fix Asset Thumbnail in Old Roblox Marketplace Menu

  1. // ==UserScript==
  2. // @name Fix Asset Thumbnail [Roblox]
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.2
  5. // @description Fix Asset Thumbnail in Old Roblox Marketplace Menu
  6. // @author Megumint
  7. // @match https://www.roblox.com/library/*
  8. // @grant none
  9. // @noframes
  10. // @license MIT
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15.  
  16. function getThumbnail(ID,onSuccess){
  17. $.ajax({
  18. url: `https://thumbnails.roblox.com/v1/assets?assetIds=${ID}&returnPolicy=PlaceHolder&size=250x250&format=png`,
  19. type: "GET",
  20. success: function (res) {
  21. if(res.data[0].state == "Completed"){
  22. onSuccess(res.data[0])
  23. }
  24. }
  25. });
  26. }
  27.  
  28. let AssetId = Number(($("html").find("link[rel='canonical']").attr("href").match(/\/(catalog|library)\/(\d+)\//) || ["", "", 0])[2])
  29. getThumbnail(AssetId,(Thumbnail) => {
  30. document.getElementsByClassName("thumbnail-span")[0].childNodes[0].setAttribute("src",Thumbnail.imageUrl)
  31. })
  32. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址