Advertisement
pebblebonk

Neopets Customization Spotlight Enlarger

Jan 13th, 2024
399
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JavaScript 0.95 KB | Source Code | 0 0
  1. // ==UserScript==
  2. // @name           Neopets - Enlarge Customization Pics
  3. // @namespace      neopets
  4. // @description    Makes Customization spotlight images bigger
  5. // @version        2024-01-13
  6. // @icon           http://tampermonkey.net/favicon.ico
  7. // @match          *://*.neopets.com/spotlights/custompet/custom_spotlight_votes.phtml*
  8. // @grant          none
  9. // @run-at         document-end
  10. // @require        https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.js
  11. // @icon           https://www.neopets.com/favicon.ico
  12. // ==/UserScript==
  13.  
  14. /* jshint asi: true, esnext: true, -W097 */
  15.  
  16. (function($) {
  17.   'use strict'
  18.  
  19.   let $img = $(".content").find("img");
  20.   let src = $img.attr("src");
  21.   src = src.replace(/(\/\/pets\.neopets\.com\/cpn?\/)(.*)(\/1\/)(2)(\.png)/gm, "$1$2$3" + 7 + "$5");
  22.   const width = "640";
  23.   $img.attr("src", src);
  24.   $img.attr("width", width);
  25.   $img.attr("height", width);
  26.  
  27. }).bind(this)(jQuery)
  28. jQuery.noConflict()
Tags: neopets
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement