Conversation
Notices
-
@mangeurdenuage @dushman I use a grease monkey script to rewrite all youtube, twitter, etc links to farside.link/$url
-
@mangeurdenuage @dushman sorry "tampermonkey"
-
@dushman @mangeurdenuage
// ==UserScript==
// @name Privacy Redirect
// @namespace http://tampermonkey.net/
// @version 1.0
// @description try to take over the world!
// @author You
// @match http*://*/*
// @grant none
// @run-at document-end
// ==/UserScript==
(function () {
'use strict'
const https = /^(?:https?:\/\/)/
const re = /(www\.)?(?:imdb|imgur|instagram|medium|odysee|quora|reddit|tiktok|translate|twitter|wikipedia|youtu\.?be)\.?(?:com|co|net|au|de)?/
const farside = 'https://farside.link'
setInterval(function() {
for (const e of document.querySelectorAll('a')) {
if (https.test(e.href)) {
const { hostname } = new URL(e.href)
if (re.test(hostname)) e.href = `${farside}/${e.href}`
}
}
}, 500)
})();