-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfedi_block_visualizer.user.js
68 lines (64 loc) · 1.57 KB
/
fedi_block_visualizer.user.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
// ==UserScript==
// @name Fedi Block Visualizer
// @homepage https://github.com/nj-lc/userscripts/
// @match https://youjo.love/*
// @grant none
// @version 0.3.3
// ==/UserScript==
const reject = [
"disqordia.space",
"waifuism.life",
"is.badat.dev",
"movsb.0x0.st",
"gamemaking.social",
"pl.gamers.exposed",
"mastodon.social",
"spectres.space",
"strelizia.net",
"sunbeam.city",
"coon.town",
"skaeya.com",
"cute.science",
"antabaka.me",
"misskey.bubbletea.dev",
"letsalllovela.in",
"mstdn.social",
"poa.st",
"octodon.social",
"bungle.online",
"sociale.network",
"mk.absturztau.be",
"neue.city",
"outerheaven.club",
"landofkittens.social",
"mk.catgirlsfor.science",
"fedi.absturztau.be",
"gearlandia.haus",
"void.brechanegra.net",
"queer.hacktivis.me",
"kiwifarms.cc",
"mk.paritybit.ca"
];
const media_removal = [
"freecumextremist.com",
"leafposter.club",
"baraag.net",
"desuposter.club"
];
setInterval(() => {
"use strict";
Array.from(document.querySelectorAll(".Status")).map(status => {
const user = status.querySelector(".account-name");
if (user) {
if (user.innerText.includes("@")) {
const reply_button = status.querySelector("button.button-unstyled.interactive path");
if (media_removal.includes(user.innerText.split("@")[1]) && reply_button) {
reply_button.style = "fill:orange;";
}
if (reject.includes(user.innerText.split("@")[1]) && reply_button) {
reply_button.style = "fill:red;";
}
}
}
})
}, 1000);