Greasy Fork is available in English.

Discussions » Development

How do I upload a script I made?

§
Posted: 11-01-2023

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) {
button.click();
}
})();



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: 11-01-2023

Nevermind, I found it myself! x'D

§
Posted: 23-02-2023

lol

Post reply

Đăng nhập để bình luận