An SNS blocker created by Psychool

It basically blocks any sns sites off of a website, go away terminally online normies
This commit is contained in:
Bobbetta S. Jameson 2024-10-09 07:37:11 +02:00
parent 25296ff696
commit f418506029

View file

@ -0,0 +1,30 @@
<script>
// Social Media Blocker v1, blocks any kind of social media site crawlers
code by psychool, big credits to him for making this. //
document.addEventListener( "DOMcontentLoaded", function()
{ var referrer = document.referrer.toLowerCase();
var blockedSites = [
'news.ycombinator.com',
'youtube.com',
'reddit.com',
'facebook.com',
'twitter.com',
'x.com',
'4chan.org',
'Instagram.com',
'linkedin.com',
'pintrest.com',
'tumblr.com',
'tiktok.com',
'quora.com',
'discord.com',
'medium.com',
'threads.net',
];
var blockedRegex = new RegExp(BlockedSites.join(' |' ));
if (blockedRegex.test(referrer)) { window.location.replace( 'about:blank' );
}
});
</script>