A user script to remove annoying pop-ups on Splinterlands (Tampermonkey)

avatar

Splinterlands is a popular blockchain gaming platform that allows users to collect digital trading cards and use them in thrilling strategy duels. While the game itself is a lot of fun, it can be frustrating for some users to be constantly confronted with pop-up messages suggesting in-game votes. The good news is that there is a solution to remove these annoying pop-ups, even if the game's developer doesn't offer an option to do so. In this article, I will show you how to use a simple user script to eliminate the unwanted pop-ups on Splinterlands.

The problem: Annoying pop-ups on Splinterlands

Splinterlands is a vibrant ecosystem where users are frequently notified of suggestions and votes. These notifications are displayed in the form of pop-up messages to keep players informed. Although this information can be useful for some players, it can become annoying for others, especially if they are unsure which suggestions to vote for or whether they want to vote at all. It can also happen that users are not interested in finding out about ongoing votes.

The solution: User script to remove the pop-ups

To remove the unwanted pop-ups on Splinterlands, I created a simple user script based on the Tampermonkey extension for various web browsers. This script adds a custom CSS rule specifically aimed at hiding the pop-up box with suggestions. The result is a smoother gaming experience without being constantly bothered by voting offers.


image.png

How to use the user script:

  • Install the Tampermonkey extension in your web browser. You can find Tampermonkey in the Chrome Web Store or in the Firefox Add-ons Marketplace.
  • Open Tampermonkey and create a new user script.
  • Copy the code below and paste it into the user script.
// ==UserScript==
// @name         Splinterlands Hide Proposal Vote Box
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Inject custom CSS on Splinterlands pages
// @author       louis88
// @match        https://splinterlands.com/*
// @match        https://next.splinterlands.com/*
// @grant        GM_addStyle
// ==/UserScript==

(function() {
    'use strict';

    // Define the custom CSS
    var customCSS = `
        .noty_type__new_proposal {
            display: none;
        }
    `;

    // Inject the custom CSS
    GM_addStyle(customCSS);
})();

  • Save the user script and activate it.
  • When you visit Splinterlands, you should no longer see pop-up messages showing you voting suggestions.

A distraction-free gaming experience on Splinterlands

Using this user script allows players to enjoy Splinterlands without the constant distraction of pop-up messages. It's a great solution if you're undecided whether to vote for a proposal or simply don't want to be disturbed.

I hope that this user script will help you enjoy a smoother gaming experience on Splinterlands. Have fun playing!



0
0
0.000
7 comments