about summary refs log tree commit diff
path: root/users/tazjin/nittredir
diff options
context:
space:
mode:
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/*"
-  ]
-}