Greasy Fork is available in English.

مۇنازىرىلەر » ئىجادىيەت

X Does not appear to be a user script.

§
يوللانغان ۋاقتى: 2024-04-23
تەھرىرلەنگەن ۋاقتى: 2024-04-23

can someone tell me why are those scripts not working

https://github.com/eye-wave/greasy-fork/releases/latest/download/fandom-debloat.user.js - Does not appear to be a user script.

https://github.com/eye-wave/greasy-fork/releases/latest/download/samequizy-autoplay.user.js - Does not appear to be a user script.

repo

Deleted user 821489
§
يوللانغان ۋاقتى: 2024-04-23
تەھرىرلەنگەن ۋاقتى: 2024-04-23

try removing this line:

if (mutation.type === "childList")

or or if it doesn't work then replace all the code with this:

// ==UserScript==
// @name           samequizy.pl - Autoplay off
// @name:en        samequizy.pl - Autoplay off
// @namespace      samequizy.pl utils
// @match          https://samequizy.pl/*
// @icon           https://www.google.com/s2/favicons?sz=64&domain=samequizy.pl
// @grant          none
// @version        3.0.1
// @description    Wyłącza automatyczne załączanie nowego quizu.
// @description:en Disables automatic loading of new quizzes.
// ==UserScript==

(async function () {
    function awaitElement(query) {
        return new Promise((res, rej) => {
            let interval;
            interval = setInterval(() => {
                try {
                    const elem = document.querySelector(query);
                    if (!!elem) {
                        clearInterval(interval);
                        res(elem);
                    }
                } catch (e) {
                    clearInterval(interval);
                    rej(e);
                }
            }, 500)
        })
    }

    const el = await awaitElement('.next-related');
    el.remove();
})();
§
يوللانغان ۋاقتى: 2024-04-23

what has it to do with my issue? this just makes it execute once

§
يوللانغان ۋاقتى: 2024-04-23

the code works fine, i just can't figure out how to make it sync with my github monorepo

§
يوللانغان ۋاقتى: 2024-04-23

There is no / in your // ==/UserScript==

§
يوللانغان ۋاقتى: 2024-04-23

that also doesn't seem to fix it

§
يوللانغان ۋاقتى: 2024-04-24

First line should be // ==UserScript==, not // ==/UserScript==.

§
يوللانغان ۋاقتى: 2024-04-24

Weird. For me it is not prompting for install but it does after fixing this part

§
يوللانغان ۋاقتى: 2024-04-24

Like i said. the code is working fine. It was on greasyfork before, i just posted in on GH for source control and ease of management. I feel like the problem here is due to how release pages redirect you to download url instead of directly letting you download the file. But if that's the case it's up to the people managing greasyfork website and not me.

§
يوللانغان ۋاقتى: 2024-04-24

Oh I'm sorry, the first line should be // ==UserScript== and last one // ==/UserScript==

جاۋاب قايتۇرۇش

جاۋاب قايتۇرۇش ئۈچۈن كىرىش.