about summary refs log tree commit diff
path: root/users/tazjin/nittredir
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
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')
-rw-r--r--users/tazjin/nittredir/background.js10
-rw-r--r--users/tazjin/nittredir/manifest.json15
2 files changed, 0 insertions, 25 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']);
diff --git a/users/tazjin/nittredir/manifest.json b/users/tazjin/nittredir/manifest.json
deleted file mode 100644
index 4efe1a6cc245..000000000000
--- a/users/tazjin/nittredir/manifest.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
-  "manifest_version": 2,
-  "name": "nittredir",
-  "version": "1.0",
-  "description": "Redirect twitter.com to nitter.net",
-  "background": {
-    "scripts": ["background.js"],
-    "persistent": true
-  },
-  "permissions": [
-    "webRequest",
-    "webRequestBlocking",
-    "*://twitter.com/*"
-  ]
-}