Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Blank Ad Spaces and Page Cut-offs Fixinator
- // @namespace http://tampermonkey.net/
- // @version 2026-05-01
- // @description Fix pages getting cut off at the top and giant sections of whitespace left by ad blockers
- // @author Rippy
- // @match http*://*.neopets.com/*
- // @icon https://www.google.com/s2/favicons?sz=64&domain=neopets.com
- // @grant none
- // ==/UserScript==
- /*
- Use this script as an alternative to the uBlock Origin custom filter solution.
- It should be fine to use both this script + uBlock Origin custom filters at the same time if you really want to, they might cover missing things between each other.
- This script still presumes you do at least have an ad blocker running though, and aims to clean up the residue that ad blockers leave behind.
- */
- (function() {
- 'use strict';
- $(document).ready(() => {
- if ($("#nl-instream-video")) {
- $("#nl-instream-video").remove();
- $("#nl-instream-video-content").remove();
- $(".nl-ad-top").remove();
- $(".nl-ad-top-content").remove();
- $(".nl-ad-bottom").remove();
- $(".nl-ad-bottom-content").remove();
- $(".nl-mobile-ad").remove();
- if (window.location.href.match(/^https?:\/\/(?:w*).?neopets.com\/inventory.phtml*/)) {
- $(".inv-menulinks").attr("style", "margin-bottom: 0px !important"); // target the giant whitespace under the menu links
- $(".popup-body__2020").attr("style", "padding: 20px !important"); // target the whitespace at the bottom of the item popup
- $("#navsub-buffer__2020").remove();
- }
- else if (window.location.href.match(/^https?:\/\/(?:w*).?neopets.com\/neoboards*/)) {
- $(".boardNavTop").attr("style", "margin-top: 0px !important"); // target the giant whitespace at the top of each board category
- $("#boardIndex > ul > li").attr("style", "margin-bottom: 0px !important"); // target the whitespace on the board index under the premium and trading categories
- $(".reply-ad-wrapper").remove(); // remove the ad element between individual board posts
- $("#navsub-buffer__2020").remove();
- }
- else if (window.location.href.match(/^https?:\/\/(?:w*).?neopets.com\/games\/*/)) {
- $(".page-title__2020").attr("style", "margin-top: 150px !important"); // fix the huge page cut-off at the top on html5 game pages
- }
- else {
- $(".page-title__2020").attr("style", "margin-top: 20px !important"); // slight padding on non-game pages
- }
- }
- });
- })();
Advertisement
Add Comment
Please, Sign In to add comment