Strudels

Trading Post Name Embigginator

Dec 8th, 2025 (edited)
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name         Trading Post Name Embigginator
  3. // @namespace    http://tampermonkey.net/
  4. // @version      2025-12-09
  5. // @description  make tp lot owner names bigger
  6. // @author       Rippy
  7. // @match        http*://*.neopets.com/island/tradingpost.phtml*
  8. // @icon         https://www.google.com/s2/favicons?sz=64&domain=neopets.com
  9. // @grant        none
  10. // ==/UserScript==
  11.  
  12. (function() {
  13.     'use strict';
  14.     const observer = new MutationObserver(() => {
  15.         $(".tp-main-content a[href*='userlookup.phtml?user=']").each(function (i, e) {
  16.             $(e).css({ "font-size": "20px" });
  17.             if (e.textContent.includes("owned by ")) {
  18.                 e.textContent = e.textContent.replace("owned ", ""); // cut some text so that larger font is less likely to push other elements out of the box if their username is really long
  19.             }
  20.         });
  21.     });
  22.     observer.observe(document, { childList: true, subtree: true });
  23. })();
Advertisement
Add Comment
Please, Sign In to add comment