Discussions » Development

How do I upload a script I made?

Posted: 2023-01-11

Hello! :)

Today 9gag changed something about the website that I abhore. So I made a userscript to fix it. Basically, 9gag hid the comments under a post behind clicking an additional button. All I did was make a script that automatically presses this button when opening a post.

The code is this:

// ==UserScript==
// @name Open Comments when opening post.
// @namespace http://tampermonkey.net/
// @version 0.1
// @description This script automatically opens the comments when opening a post.
// @author Animeconnoiseur
// @match https://9gag.com/gag/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=9gag.com
// @grant none
// ==/UserScript==

(function() {
const button = document.querySelector('.post-tab-bar__tab');
if (button) {

So now I want to upload it, both for the case if I ever need to reinstall my browser, and for other people to use it too.

Posted: 2023-01-11

Nevermind, I found it myself! x'D

Posted: 2023-02-23


Post reply

Sign in to post a reply.