1 /* Targets taken from the privacy-redirect webextension
2 This isn't great, as it does still load the webpage before
3 redirecting, however it is better than nothing. */
5 const youtube_targets = [
10 "youtube-nocookie.com",
11 "www.youtube-nocookie.com",
17 const twitter_targets = [
25 const reddit_targets = [
34 const instagram_targets = [
38 "about.instagram.com",
42 [youtube_targets, "https://invidious.fdn.fr"],
43 [twitter_targets, "https://nitter.fdn.fr"],
44 [reddit_targets, "https://teddit.net"],
45 [instagram_targets, "https://insta.trom.tf"],
48 for (i = 0; i < targets.length; i++) {
49 if (targets[i][0].indexOf(window.location.hostname) > -1) {
50 document.write('<script type="text/undefined">')
51 location.replace(targets[i][1] + window.location.pathname);