// ==UserScript==
// @name RickBlock
// @namespace https://rblock.glitch.me/
// @version 1.2.15
// @description The godlike rickroll blocker.
// @author Tiago Rangel
// @match http*://*/*
// @include *
// @icon https://rblock.glitch.me/cdn/fav.svg
// @run-at document-idle
// @grant GM.getValue
// @grant GM.setValue
// @grant GM.deleteValue
// @grant unsafeWindow
// @grant GM_registerMenuCommand
// @grant GM_unregisterMenuCommand
// ==/UserScript==
/*
RICKBLOCK
The godlike rickroll blocker.
--------------------------------------------
This is the source code for RickBlock. Feel
free to inspect it, but note that it might
feel like a dumpster fire - I pray for your
safety.
To add a blocklist/allowlist website, use
the `settings` variable.
Made by Tiago Rangel (tiagorangel.com).
Do not redestribute.
--------------------------------------------
Last updated 20/07/2024
(dd/mm/yyyy)
*/
(function (GM) {
const __version__ = "1.2.14";
const settings = {
allow:
"rickastley.co.uk, rblock.glitch.me, anti-rickroll.glitch.me, rickastley.tmstor.es, duckduckgo.com, wikipedia.org, google.com, bing.com, brave.com, microsoft.com, windows.com, insider.com, washingtonpost.com, knowyourmeme.com, dictionary.com, oque-e.com, grunge.com, yourtango.com, wired.com, nytimes.com, bbc.com, cnn.com, npr.org, usatoday.com, theonion.com, economist.com, forbes.com, nationalgeographic.com, time.com, cnet.com, techcrunch.com, amazon.com, ebay.com, github.com, stackoverflow.com, spotify.com, netflix.com, reddit.com, linkedin.com, instagram.com, facebook.com, twitter.com, pinterest.com, reuters.com, apnews.com, abcnews.go.com, theguardian.com, bloomberg.com, cnbc.com, aljazeera.com, newsweek.com, huffpost.com, politico.com, foxnews.com, msnbc.com, latimes.com, chicagotribune.com, thedailybeast.com, axios.com, businessinsider.com, vice.com, w3schools.com, tiagorangel.com, independent.co.uk, guardian.co.uk, cbc.ca, nasa.gov, ted.com, britannica.com, weather.com, quora.com, mentalfloss.com, howstuffworks.com, webmd.com, pbs.org, history.com, sciencedaily.com, lifehacker.com, wired.co.uk, atlasobscura.com, nationalpost.com, theverge.com, apartments.com, cbsnews.com, newyorker.com, billboard.com, rollingstone.com, arstechnica.com, pitchfork.com, espn.com, sciencealert.com, historyextra.com, vox.com, newscientist.com, avclub.com, glitch.com, youtube.com/@Beluga1, cloudflare.com, recaptcha.net, archive.org/search, youtube.com/results?search_query, lemmy.world, tvtropes.org/pmwiki/pmwiki.php, glitch.com/edit, amie.so, cron.com, openai.com, rickblock.glitch.me, chatgpt.com, getpocket.com",
match: {
youtube:
"dQw4w9WgXc, LLFhKaqnWwk, p7YXXieghto, oHg5SJYRHA0, 2C9MK0moz8A, 6_b7RDuLwcI, G8iEMVr7GFg, AyOqGRjVtls, 6mhmcwmgWbA, SpZ2FsEfwP4, H01BwSD9eyQ, nrsnN23tmUA, 8mkofgRW1II, rAx5LIul1N8, sO4wVSA9UPs, rrs0B_LM898, doEqUhFiQS4, epyRUp0BhrA, uK5WDo_3s7s, wzSVOcgKq04, 7B--1KArxow, rbsPu1z3ugQ, ptw2FLKXDQE, E50L-JYWm3w, 8leAAwMIigI, ByqFY-Boq5Y, E4ihJMQUmUQ, cjBHXvBYw5s, xaazUgEKuVA, TzXXHVhGXTQ, Uj1ykZWtPYI, EE-xtCF3T94, V-_O7nl0Ii0, cqF6M25kqq4, 0SoNH07Slj0, xfr64zoBTAQ, j5a0jTc9S10, dPmZqsQNzGA, nHRbZW097Uk, BjDebmqFRuc, Gc2u6AFImn8, 8VFzHYtOARw, cSAp9sBzPbc, Dx5i1t0mN78, Oo0twK2ZbLU, cvh0nX08nRw, lXMskKTw3Bc, 7z_1E8VGJOw, VgojnNgmgVs, 5wOXc03RwVA, r8tXjJL3xcM, gvGyS5j9aFY, 6-HUgzYPm9g, hVzINKRbekY, fZi4JxbTwPo, 2bfNgekJG4M, xvFZjo5PgG0, j7gKwxRe7MQ, iik25wqIuFo, pKskW7wJ0v0, LWErcuHm_C4, dRV6NaciZVk, ll-mQPDCn-U, a6pbjksYUHY, MCjlo7PtXMQ, mrThFRR3n8A, QB7ACr7pUuE, HnfkEVtetuE, bIwVIx5pp88, AACOcpA8i-U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yc, u1EJFE2u3Ng, hNfDNORPU4Y, kzMah7dC5h8, ne_FZGQYLSU, 0EY98EsPXs8, gQDEDh23cK8, OisqGC0M2t0, 2rP6TcIPUpE, eBsIpefmXvE, IDWPIHeyxdM, QQePqf21Mi4, XsNjQ8A_9uU, J_DsOPcPiR0, ID_L0aGI9bg, REWyCy_m39Q, SWejvNI7WlM, N3MKlU5_Gs0, PibwQR9nRus, s99hC5WUwjo, cH1NLToRz_o, -lmhJOhQHWc, gidHrKbTpog, OYpwAtnywTk, klqi_h9FElc, DIs7dtlMCP0, Q53-mWHvxJo, 6vBnqJhP7f8, Dh-CW22axyY, lOxgTIp5_TA, kczWpSN6emg, 3HtCQCFk1W0, cAN30xJp2Cs, 6RyOsIseJbk, Kiz3PM387FI, xm3YgoEiEDc, ZO8n_vfsxKg, ckhlhIy7NqY, jCA5eCQnycU, WZ-bMsTNao0, WAAQjMggfhw, 5U4R6fW-P0s, ruP6vRuIqzo, tXzng395qq0, Wlv0Jyb4zx8, 88_U32dKr2Y, _IorroidPS8, s_Ec4YjaWbs, _m9Lu56Ss4Y, QMW4AqbuSGg, L9MEdkgWLEY, f-tLr7vONmc, ykLGXWb-AtA, RiJ-lxa2pk4, eCf4lXRVTZo, Y_0Ef3ftoek, ub82Xb1C8os, kKi-AKvWHGM, z6wNtevjVOk, igaCvre6WmE, 2EkXa0GMH1w, 3-csLHSLS-k, 6hlTj-cK7XU, bIXm-Q-Xa4s, aqOoTQ-G-r4, fOGEMwgqN20, C4rtrJjXkng, DvqOdOY2a4I, gN1wZiwvjX4, i1EU-_Qe_28, UtPZcwPnvkw, oml5cFYAlK8, 5qsptIjlHqM, GheaIsTd7pY, ZFH0ny9_GzU, PsAwRIT17Is, nDNYN4-OYZM, E458nb_pPmk, LjQZaD9EEJ0, s0akG-V_Y30, -51AfyMqnpI, RvBwypGUkPo, oJl25bABYac, b9x-4JxSxjQ",
gifs: "cdn.glitch.global/cc4c1da6-ff77-47a3-b1f6-aa10e9acf76a/RealisticPromo.gif,tenor.com/ywGcakuIXTMAAAAM/unrickrollreversecard,tenor.com/s7dLt8kL4zcAAAAM/unrickrollbytominouyt,tenor.com/ZTqwW0sOvYsAAAAM/unrickroll-cool,tenor.com/plVyagQRVhoAAAAM/rick-roll,tenor.com/1V-2t7coAQQAAAAM/rickroll-rick-roll-rick-astley-rick-roll-rick-rick-rickroll,tenor.com/wf3j_kMSeYAAAAAM/rick-roll-rick,tenor.com/8bcxeq0FRkoAAAAM/funny,tenor.com/Ost-XwRQhXoAAAAM/rick-roll,tenor.com/OioDKdRUjWEAAAAM/rick-roll,tenor.com/m0bPHVGPgFsAAAAM/unrickroll-card,tenor.com/4HVBtKGyOcUAAAAM/the-darkest-mode-je-tlir-tdmjt,tenor.com/ftyw4WkOtVoAAAAM/rickroll,tenor.com/N1FZyOXW4VEAAAAM/rickroll,tenor.com/YZmaj_qzJrsAAAAM/rickroll,tenor.com/6WPve7lwPbkAAAAM/un-rick-roll-rick-roll,tenor.com/bGNRCRLPHOUAAAAM/rickroll,tenor.com/_PXSxg3VteoAAAAM/ashgivingnitro,tenor.com/Rq9Xv-s-kksAAAAM/rick-roll,tenor.com/80vfPW3pcBcAAAAM/rick-roll,tenor.com/FDHjsCasOdAAAAAM/rickroll,tenor.com/uNn3MNOhW-UAAAAM/rick-astley,tenor.com/wiwQvdYH7IQAAAAM/rick-roll,tenor.com/acLHyusK_RkAAAAM/rick-roll,tenor.com/RwuTTaB2_KsAAAAM/rickroll,tenor.com/H7UVoBUN4bgAAAAM/rick-astley,tenor.com/Z-_ubVAThX0AAAAM/hehe-boy,tenor.com/oOjnFj7aJSYAAAAM/rickastley,tenor.com/xG5FhcJXf6IAAAAM/leclerc-deepfake,tenor.com/NHwoER87SUcAAAAM/str%C3%B6vt%C3%A5g-i-hembygden,tenor.com/AsK9t0hQLWIAAAAM/rick-roll,tenor.com/ZnuljWZAxfMAAAAM/pop-cat,tenor.com/WoC0nV8hmwUAAAAM/rickroll,tenor.com/Rwu8lyL-M8wAAAAM/never-gonna-give-you-up,tenor.com/M2mJZAHtcv4AAAAM/smoke-x,tenor.com/Sab8pdx919cAAAAM/rick-roll,tenor.com/QxXp3AcYLY0AAAAM/rickroll-wolfbloxs-gif,tenor.com/I7dJY4Q6lgIAAAAM/abcrickroll,tenor.com/U9ljWWvJ6z8AAAAM/rick-roll,tenor.com/molZu5QCv_cAAAAM/pjsk-rickroll,tenor.com/7ai8wCP8fBAAAAAM/rickroll,tenor.com/A9DTi-gUGMkAAAAM/discord-notice,tenor.com/CjjH_kzaTGMAAAAM/discord-notice,tenor.com/VLK9vLnzSHQAAAAM/rihanna,tenor.com/vc686HlCe5gAAAAM/rickroll,tenor.com/YxxPv2vPlg0AAAAM/among-us-meme,tenor.com/AJnLCDMnMIkAAAAM/rickroll,tenor.com/sy3upAhNyOMAAAAM/rickroll-rick,tenor.com/zdM8qjvu72AAAAAM/rick-roll-gif,tenor.com/3sMo5H2JQw0AAAAM/rick-roll,tenor.com/9MZ3iUCMj_wAAAAM/rick-roll,tenor.com/q0Ejci9EQhcAAAAj/rick-astley-rick-roll,tenor.com/nBt6RZkFJh8AAAAj/never-gonna,tenor.com/gNv3O0hRDrcAAAAj/rickroll-rick,tenor.com/Cj3sLJg6mo0AAAAj/rickroll,tenor.com/JKqs7cUyi9gAAAAj/rick-astley-dance,tenor.com/jo3Dz7gL5LkAAAAj/never-gonna-give-you-up-rick,tenor.com/FZQVvhCw66kAAAAj/rick-astley-rick-roll,tenor.com/CHc0B6gKHqUAAAAj/deadserver,tenor.com/Ru81f5Z4K-YAAAAj/baldi-rickroll,tenor.com/yFDsWmwc0gkAAAAj/rick-roll-rick-astley,tenor.com/7jOYGdsyu1QAAAAj/rick-roll-rick-astley,tenor.com/xo0jvr4bbTMAAAAj/rick-astley-rickroll,tenor.com/ULJn9_2K17UAAAAj/wazatoz-rick-roll,tenor.com/V4D-3LyhfLcAAAAj/benjammins-jamming,tenor.com/-95pYCtFE-IAAAAj/piano-sheep-rick-roll,tenor.com/PM7ih8AUCfUAAAAj/rickroll,tenor.com/MplpM4-ljFsAAAAj/hololive-momosuzu-nene,tenor.com/J3256XF1DFcAAAAj/rick-roll,tenor.com/dQw-UGON9l4AAAAj/rickroll,tenor.com/NNW7RmMMB3gAAAAj/rick-roll-discord,tenor.com/4PW7GRgoz5IAAAAj/rick-roll-rick-astley,tenor.com/yzQj6APQvAQAAAAj/jones-beagle,tenor.com/KVZX-Jjkv0cAAAAj/invisible-rick-roll,tenor.com/Vtqq4_mr2V0AAAAj/rick-astley-crying-rickroll-crying,tenor.com/WfQR-n3TclUAAAAj/lol,tenor.com/EC7hjOwcc28AAAAj/strike-dex-wendex-wen-dex,tenor.com/Kd_JeEiMW1MAAAAj/rick-rolled,tenor.com/d2HOV8OO7h8AAAAj/rickroll-gif,tenor.com/zmLdNkNRMcwAAAAj/rickroll-rick-astley,tenor.com/U8LxQxSfWWIAAAAj/rickroll,tenor.com/v50sh2He1AAAAAAj/rickroll-rick,tenor.com/JgzL2EiiuBwAAAAj/rickroll,tenor.com/zuWiNsNjKPYAAAAj/rick-astley-together-forever,tenor.com/osgmrWdZJ9EAAAAj/rick-roll,tenor.com/5w48Grc-7MwAAAAj/scatman-shbar,tenor.com/CiHdQjW_doYAAAAj/rickroll-discord-background,tenor.com/d17LauhEsucAAAAj/euj-challenge-euj-doge,tenor.com/kwimECIRYeAAAAAj/rick-astley-fighter,tenor.com/tkhBN6TlHkoAAAAj/bttv-rolling-cat,tenor.com/8xGcAUS6GYoAAAAj/never-gonna-give-you-up,tenor.com/wUo2J1-yfF8AAAAj/meme-rickroll,tenor.com/XqxCXnSAd4QAAAAj/dance-parrot,tenor.com/YAUMFOCgUu4AAAAj/think,tenor.com/p7eYyrx85QgAAAAj/dreary-rickroll,tenor.com/du2PvIMeYAEAAAAj/he-roll,tenor.com/Q-wp004xiLgAAAAj/omegalul-omegaluliguess,tenor.com/hQYqVV4aPjkAAAAj/roy-rick-roll,tenor.com/3czDyFK_eoQAAAAM/rickroll,tenor.com/PIeaEOt0PygAAAAj/carltriggered-carl,tenor.com/KAkwFSnWP7MAAAAj/rock,tenor.com/WW5cV8oKlXYAAAAj/primate-primates,tenor.com/yeKQyZZ9-OAAAAAM/rick-astley-dancing,tenor.com/xWaa0fllYu0AAAAM/mancake-mancakepancake,tenor.com/xu1Dj2mzPiQAAAAM/rick-roll-rick-astley,tenor.com/kgTmr-O84QMAAAAM/one,tenor.com/lOWUNmaKBIoAAAAM/bobux-roblox,tenor.com/lQxToHbuUNwAAAAM/rick-roll,tenor.com/zCYhfl6TQ_kAAAAM/hidden-rickroll-rickroll,tenor.com/PZzJzerf_t0AAAAM/izbandut-i%CC%87zbandut,tenor.com/Mwj3XGXRc-4AAAAM/rickrol-dancingl,tenor.com/6a_rjaVOCioAAAAM/rickroll-happy-birthday-rickroll,tenor.com/zwBJBN8vSyIAAAAM/rick,tenor.com/aLaWpv8oVeMAAAAM/rick-roll-birthday-card,tenor.com/YEyhybcl584AAAAM/rickroll-rick-astley,tenor.com/VmRGag4XRKsAAAAM/custom-rick-roll-profile,tenor.com/6-ZJXQy2EX8AAAAM/rick-astley-rick-roll,tenor.com/zR_Zvk1g4IEAAAAM/famousseamus51-freddo,tenor.com/BSrfFHrFstQAAAAM/xeli-xeli-rick,tenor.com/1Zuvs6wsvEsAAAAM/rickroll-hidden-rickroll,tenor.com/3vParT-JxWsAAAAM/jono-dance,tenor.com/D8SsXBJvBskAAAAM/sumsar-gato,tenor.com/PIveZx1VZm8AAAAM/gotggame-gotgthegame,tenor.com/_Lwz3Yvl_KgAAAAM/ava-love,tenor.com/M8K4xOgrJ0UAAAAM/when-it-bruh-moment,tenor.com/0rrEPmFf9GwAAAAM/rickroll-women-kissing,https://media1.giphy.com/media/gfv0mlAow94QmIoZLX/200w.gif,https://media3.giphy.com/media/XLhLFIv4dCgf1tMeqd/200w.gif,https://media3.giphy.com/media/YdhIGSfonAgQDmqFeA/200w.gif,https://media1.giphy.com/media/vKkLFT2ETub2NFfSvo/200w.gif,https://media0.giphy.com/media/Vuw9m5wXviFIQ/200.gif,https://media0.giphy.com/media/Ju7l5y9osyymQ/200.gif,https://media2.giphy.com/media/Wrh8aL75aj4uZwuqta/200w.gif,https://media4.giphy.com/avatars/default3/80h.gif,https://media0.giphy.com/media/LXONhtCmN32YU/200.gif,https://media2.giphy.com/media/10kABVanhwykJW/200.gif,https://media2.giphy.com/media/a6OnFHzHgCU1O/200.gif,https://media2.giphy.com/media/fRB9j0KCRe0KY/200.gif,https://media3.giphy.com/media/qrgLASJKfY08PcrxcJ/200w.gif,/search/rick-astly-gifs,/search/rick-rolled-gifs,/never-gonna-give-you-up-gifs,/view/rick-astly-rick-rolled-gif-22755440,rickroll-roll-rick-never-gonna-give-you-up-never-gonna-gif-22954713,drink-water-drink-water-meme-rickroll-drink-water-rickroll-gif-26472664,view/rickroll-eyetest-amogus-gif-26059483,view/hugs-rickroll-gif-24588121,IvQAHsw0ivsAAAAM/suffer-rickroll,kGekz062mwgAAAAM/hugs-rickroll,CWgfFh7ozHkAAAAM/rick-astly-rick-rolled,GLJyB8cqzQoAAAAM/rickroll-eyetest,ximuwFitO98AAAAM/drink-water-drink-water-meme,5bhEB3UYIC4AAAAM/rickroll,x8v1oNUOmg4AAAAd/rickroll-roll,wTKt4BjN7TsAAAAd/zant-just-got-rick-rolled-zant,LUbHxj8HBgYAAAAM/simple-hack-simple-trick,5fbVmtFJsrAAAAAM/hahahahahaah-lol,H4uuiyocI0QAAAAM/rickroll-discord,seWSyfIpUCAAAAAM/rickroll,onTlUVMtWy4AAAAM/rickroll-rick,c3JHQwpnnbcAAAAM/get-rick-rolled-hacker,sl_sSCM8w1sAAAAM/alan-walker-logo,wTKt4BjN7TsAAAAd/zant-just-got-rick-rolled-zant,WWTo92qOBaIAAAAM/max-maxim,Tc-TUkHTki4AAAAM/rick-roll,kGekz062mwgAAAAM/hugs-rickroll,x8v1oNUOmg4AAAAM/rickroll-roll,?size=64&name=starroll,?size=64&name=rickroll2,?size=64&name=rickroll%7E1,?size=64&name=rickroll1",
links: [
// Small websites
"rr.noordstar.me",
"chickenroad.org",
"rroll.to",
"boulderbugle.com",
"rick.amigocraft.net",
"my-names-not-rick.vercel.app",
"bringvictory.com",
"d.iscord.gq",
"galeonn.org",
"tinyurl.eu.aldryn.io",
"the-circle-illusion.netlify.app",
"therickroll.com",
// URLS
"archive.org/download/Rick_Astley_Never_Gonna_Give_You_Up/Rick_Astley_Never_Gonna_Give_You_Up",
"realistic-texture-pack.glitch.me/download.html",
"microsoftgithub.com",
"news.rr.nihalnavath.com",
"rickroll.villainsrule.xyz",
// MTDV mirrors
"blogs.mtdv.me",
"myshop.rocks",
"newskit.social",
"r.mtdv.me",
"blogs.mtdv.me",
"social.mtdv.me",
"creations.mtdv.me",
"r.motiondevelopment.top",
"blogs.motiondevelopment.top",
"social.motiondevelopment.top",
"creations.motiondevelopment.top",
// The Great Rickroller links
"0quizz.glitch.me",
"1use-msg.glitch.me",
"2day-project.glitch.me",
"2vscode.glitch.me",
"3blog.glitch.me",
"alpinejs-blog.glitch.me",
"ancient-ambitious-viscount.glitch.me",
"chatgpt-web.glitch.me",
"codingar.glitch.me",
"ddg-win.glitch.me",
"easyform.glitch.me",
"echo-it.glitch.me",
"email-redirect.glitch.me",
"foobar-loader.glitch.me",
"fragrant-sweet-hyssop.glitch.me",
"free-shorten.glitch.me",
"freecord.glitch.me",
"freedevblog.glitch.me",
"freelink.glitch.me",
"freemix.glitch.me",
"freepng.glitch.me",
"freetechdocs.glitch.me",
"gdframework-docs.glitch.me",
"get-freerobux.glitch.me",
"get-thingy.glitch.me",
"getshortn.glitch.me",
"gnu2.glitch.me",
"gomix-redirect.glitch.me",
"gpt4bot.glitch.me",
"har-framework.glitch.me",
"horn-zinc-echinodon.glitch.me",
"instantloader.glitch.me",
"jhon-codingblog.glitch.me",
"linkanalytics.glitch.me",
"linknail.glitch.me",
"linkshortner.glitch.me",
"msg-road.glitch.me",
"mu-read.glitch.me",
"openai-api.glitch.me",
"project-webring.glitch.me",
"readmsg.glitch.me",
"shorter-stage.glitch.me",
"shortnr.glitch.me",
"sidewaysragdoll.glitch.me",
"smallyoutube.glitch.me",
"tgc-starter.glitch.me",
"tgc2.glitch.me",
"the-ia-blog.glitch.me",
"thedevfreeblog.glitch.me",
"thisisit-blog.glitch.me",
"tiagorangel-links.glitch.me",
"tinyurl-remix.glitch.me",
"unofficial-community-discord.glitch.me",
"webcomic3.glitch.me",
"website-staging.glitch.me",
"winterberry-jokes.glitch.me",
"worser.glitch.me",
"xkcd-api2.glitch.me",
"xn--ds8h.glitch.me",
"xn--n28h.glitch.me",
"💡.glitch.me",
"😉.glitch.me",
// Other
"/watch?v=dQw4w9WgXcQ",
],
},
};
const $ = (e) => (window || unsafeWindow).document.querySelector(e);
const $$ = (e) => (window || unsafeWindow).document.querySelectorAll(e);
const detect = {
detect: function (link) {
var detected = false;
var allowed = false;
settings.allow.split(", ").forEach(function (e) {
if (link.includes(e)) {
allowed = true;
}
});
if (allowed) {
return false;
}
settings.match.youtube.split(", ").forEach(function (e) {
if (link.includes(e) && (link.includes("you") || link.includes("yt"))) {
detected = true;
}
});
settings.match.gifs.split(",").forEach(function (e) {
if (link.includes(e)) {
detected = true;
}
});
settings.match.links.forEach(function (e) {
if (link.includes(e)) {
detected = true;
}
});
if (detected) {
return true;
}
return false;
},
links: function () {
$$("a[href]").forEach((link) => {
if (detect.detect(link.href)) {
link.style.backgroundColor = "#ea4335";
link.style.color = "white";
link.style.backgroundImage =
'url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC0AAAAtCAYAAAA6GuKaAAAACXBIWXMAAANiAAADYgHLPBUUAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABI7SURBVHgBpVl7jFxnfT33fefOY2d2Zva93l2/Xzg2hsYhlIwhFGgNOFUDqlqJ5I8iWqgUGgSFtrIttRWVQFC1paGNRCJo0xJiJ80TkuDJ0yEksZ3Ejh17d8fe93q9O++ZO/fV813Hjpdd58Un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FSaIUVt6i+NPGrFXe5xoo5zbSc7utnk6YXWSYdNbUCWiIbWtqFseN49IGfwGElktnxBzhcV3G7sho1GGFHQLgax3b3vfDAt/deCdsVQYsxfvK5/K6Pf+Qow7pDY5mzMDeD+x96BFn2mCPU2bBSr7MaUS5U0lJwIVuJClGWLhS8LUYvSPSFG7M8cxKjz9yL16YmWbEY6B7gCqx9P6aKDIrGvrURLVpW7FMH7/r6HW+F6y1Bi/F4Pn9i1yc/eV/LLqceefjnW0fHZ5CO68gkYuF5YZ8XSqVQGcKGJIsJl5y0mQFLLRlNqx86PcvsyGGMHLofNiuQ12eLsJiA1q0eYlMyjkrdQ7VSv7cq+Tsfuf3LJ94Ok4p3ML76zW8W+HXTYFfmjpYn7Zkr1nJhocsCVRWFL6vpU+MTrGwUVjA627ps9zL7+W1rkWAiGT56EKWxl+ldAjbcqwROLaYD1Nnnc1vNfMZS9935L1/P4x2OdwT64ihMz+X5lS9VzZxtt27SNe2zCJRkhEubae/G8NkCao0i6aJBjzFT2mcwMfw8aEBJnYDGq4UTM2XSRikyw92p+vV7v/k3N+fxLsd7+pn58nHr7utzZEiOcndVo2kPvvb66CABJRVW8RZbXVyJou8FRf7ucqQwff7oSNXP0/AeAYrF9zrn/wNObRzbg4SvngAAAABJRU5ErkJggg==")';
link.style.backgroundSize = "auto 100%";
link.style.backgroundPosition = "right center";
link.style.backgroundRepeat = "no-repeat";
link.style.paddingRight = "20px";
link.style.borderTopRightRadius = "100px";
link.style.borderBottomRightRadius = "100px";
}
});
},
media: function () {
$$("img[src]").forEach((img) => {
if (detect.detect(img.src)) {
img.src =
"https://media2.giphy.com/media/v1.Y2lkPTc5MGI3NjExM2tibDBoZndmZ3lnZnd6OThuY3FoeTgyMDhvZ2VyYXQzY3RkejFkeiZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/0A7TaeTWGNsMn3AiJc/giphy.gif";
}
});
$$("video").forEach((vid) => {
if (detect.detect(vid.currentSrc || vid.src)) {
vid.innerHTML = "";
vid.setAttribute(
"src",
"https://cdn.glitch.global/5602d221-012f-4755-addd-fe0ec13ed024/ezgif-2-2a9edb3674.mp4"
);
vid.setAttribute("loop", "true");
}
});
},
web: async function () {
if (await hasSkip()) {
return false;
}
let foundBlocklist = false;
const blocklist = ["yougotrickrolled", "rickrolled!", "gotrickrolled"];
blocklist.forEach((block) => {
if (
document.body.innerText
.toLowerCase()
.replaceAll("0", "o")
.replaceAll("1", "l")
.replaceAll(" ", "")
.replaceAll("\n", "")
.replaceAll("€", "e")
.replaceAll("<--", "")
.replaceAll("-->", "")
.includes(block.trim())
) {
foundBlocklist = true;
}
});
if (foundBlocklist) {
return true;
}
return detect.detect(location.href);
},
};
const hasSkip = async function () {
if (
decodeURIComponent(new URL(location.href).searchParams.get("active")) ==
"skip" ||
(await GM.getValue("skip"))
) {
let hasExpired = false;
if (await GM.getValue("skip")) {
if (JSON.parse(await GM.getValue("skip")).expires <= Date.now()) {
hasExpired = true;
}
}
if (hasExpired) {
await GM.deleteValue("skip");
} else {
await GM.setValue(
"skip",
JSON.stringify({
expires: Date.now() + 10 * 60 * 1000,
})
);
return true;
}
}
return false;
};
const main = async function () {
if (location.hostname === "rblock.glitch.me") {
$("body").setAttribute("data-rickblock-version", __version__);
}
let allowed = false;
settings.allow.split(", ").forEach(function (e) {
if (location.href.includes(e)) {
allowed = true;
}
});
const checkAll = async function () {
detect.links();
detect.media();
if (await hasSkip()) {
return;
}
let allowed = false;
settings.allow.split(", ").forEach(function (e) {
if (location.href.includes(e)) {
allowed = true;
}
});
if (!allowed && (await detect.web())) {
document.body.innerHTML = `<div style="margin:3em;text-align:center;"><h1 style="font-family: Roboto, Arial, sans-serif;">Rickroll detected.<br>Loading...</h1></div>`;
document.location.replace(
"https://rblock.glitch.me/magic/block?origin=" + btoa(location.href)
);
}
};
setInterval(checkAll, 2000);
checkAll();
if (GM) {
if (await hasSkip()) {
GM_registerMenuCommand(
"Re-enable detection",
function () {
GM.setValue(
"skip",
JSON.stringify({
expires: Date.now() + 10 * 60 * 1000,
})
);
GM_unregisterMenuCommand("disable");
},
{ id: "disable" }
);
} else {
GM_unregisterMenuCommand("disable");
}
}
};
main();
})(self.GM);