Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Neopets - Enlarge Customization Pics
- // @namespace neopets
- // @description Makes Customization spotlight images bigger
- // @version 2024-01-13
- // @icon http://tampermonkey.net/favicon.ico
- // @match *://*.neopets.com/spotlights/custompet/custom_spotlight_votes.phtml*
- // @grant none
- // @run-at document-end
- // @require https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.js
- // @icon https://www.neopets.com/favicon.ico
- // ==/UserScript==
- /* jshint asi: true, esnext: true, -W097 */
- (function($) {
- 'use strict'
- let $img = $(".content").find("img");
- let src = $img.attr("src");
- src = src.replace(/(\/\/pets\.neopets\.com\/cpn?\/)(.*)(\/1\/)(2)(\.png)/gm, "$1$2$3" + 7 + "$5");
- const width = "640";
- $img.attr("src", src);
- $img.attr("width", width);
- $img.attr("height", width);
- }).bind(this)(jQuery)
- jQuery.noConflict()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement