about summary refs log tree commit diff
path: root/users/tazjin/nittredir/background.js
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2022-01-17T14·18+0300
committerclbot <clbot@tvl.fyi>2022-01-17T14·25+0000
commit3ecb412055532bfea0c7badaa137ddf75e563392 (patch)
tree4786d5f70d6e291db4c3d7b8c322b7978b0b4b6f /users/tazjin/nittredir/background.js
parent1c81ccb99634d107eb7f9b986bc4822c7a517d13 (diff)
chore(tazjin/*): Remove some dead code r/3620
Change-Id: Ic938bc9ae446620f132d912e4787f4b42ffd9341
Reviewed-on: https://cl.tvl.fyi/c/depot/+/4983
Reviewed-by: tazjin <tazjin@tvl.su>
Autosubmit: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
Diffstat (limited to 'users/tazjin/nittredir/background.js')
-rw-r--r--users/tazjin/nittredir/background.js10
1 files changed, 0 insertions, 10 deletions
diff --git a/users/tazjin/nittredir/background.js b/users/tazjin/nittredir/background.js
deleted file mode 100644
index 8d07f8528520..000000000000
--- a/users/tazjin/nittredir/background.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * Register a URL change handler that redirects twitter.com links to nitter.net
- */
-
-chrome.webRequest.onBeforeRequest.addListener(function(details) {
-  let url = new URL(details.url);
-  return {
-    redirectUrl: ('https://nitter.net' + url.pathname)
-  };
-}, {urls: ['*://twitter.com/*'], types: ['main_frame']}, ['blocking']);