Conversaciones » Desarrolladores
X Does not appear to be a user script.
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();
})();
what has it to do with my issue? this just makes it execute once
the code works fine, i just can't figure out how to make it sync with my github monorepo
There is no /
in your // ==/UserScript==
that also doesn't seem to fix it
First line should be // ==UserScript==
, not // ==/UserScript==
.
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.
Oh I'm sorry, the first line should be // ==UserScript==
and last one // ==/UserScript==
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