Strudels

Neopets User Lookup Styling Removinator

Nov 9th, 2025 (edited)
583
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name         Neopets User Lookup Styling Removinator
  3. // @namespace    http://tampermonkey.net/
  4. // @version      2025-11-09
  5. // @description  Automatically hides user lookup styling so you can view lookups plainly
  6. // @author       Rippy
  7. // @match        *://*.neopets.com/userlookup.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.  
  15.     if (document.body.innerHTML.match(/<br clear="all">/g).length > 1) {
  16.         document.body.innerHTML = document.body.innerHTML.replace(/<div align="center">[\S\s]*?<br clear="all">/, "");
  17.         document.getElementsByClassName("bx-viewport")[0].style = "height: 238px;";
  18.         document.getElementsByClassName("bx-controls")[0].style = "display: none;";
  19.         $(function () {
  20.             $('#bxlist').bxSlider({
  21.                 touchEnabled: false,
  22.                 pager: false,
  23.                 minSlides: 1,
  24.                 maxSlides: 5,
  25.                 slideWidth: 150,
  26.                 slideMargin: 55,
  27.                 moveSlides: 1
  28.             });
  29.         });
  30.     }
  31. })();
Advertisement
Add Comment
Please, Sign In to add comment