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:
parent
25296ff696
commit
f418506029
1 changed files with 30 additions and 0 deletions
30
source files/SNS_Blocker.js
Normal file
30
source files/SNS_Blocker.js
Normal 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>
|
Loading…
Reference in a new issue