Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
| [YouTube](https://youtube.com) (Links & embeds) | [Piped](https://github.com/TeamPiped/Piped), [Invidious](https://github.com/iv-org/invidious) |
| [𝕏](https://twitter.com) | [Nitter](https://github.com/zedeus/nitter) |
| [Reddit](https://reddit.com) | [redlib](https://github.com/redlib-org/redlib) |
| [Search](https://www.google.com) | [SearXNG](https://github.com/searxng/searxng) |
| [Search](https://www.google.com) | [SearXNG](https://github.com/searxng/searxng)
| [Chatgpt](https://chatgpt.com) | [Gemini](https://github.com/gemini.google.com/redlib) |
| [Medium](https://medium.com) | [Scribe](https://sr.ht/~edwardloveall/Scribe/), [LibMedium](https://github.com/realaravinth/libmedium), [medium.rip](https://github.com/SphericalKat/medium.rip) |
| [TikTok](https://tiktok.com) | [ProxiTok](https://github.com/pablouser1/ProxiTok) |
| [Quora](https://quora.com) | [Quetre](https://github.com/zyachel/quetre) |
Expand Down
6 changes: 6 additions & 0 deletions src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ let defaultCustomInstances = {
snopesInstance: "",
reutersInstance: "",
stackoverflowInstance: "",
chatgptinstances: ""
};
const youtubeInstances = [
"inv.n8pjl.ca",
Expand Down Expand Up @@ -291,6 +292,7 @@ const redditInstances = [
"safereddit.com",
];
const bandcampInstances = ["tent.sny.sh", "tent.bloat.cat", "tn.vern.cc"];
const chatgptinstance = "gemini.google.com"
const tumblrInstances = ["pb.bloat.cat", "tb.opnxng.com", "pb.exozy.me"];
const soundcloudInstances = ["tubo.migalmoreno.com"];
const udInstances = [
Expand Down Expand Up @@ -827,6 +829,7 @@ function updateRules(parameterRedirectServices, customInstances) {
redirectRules.push(
createRedirectRule(40, "reuters.com", randreutersInstance)
);

}
if (parameterRedirectServices.stackoverflow) {
redirectRules.push(
Expand All @@ -846,6 +849,9 @@ function updateRules(parameterRedirectServices, customInstances) {
},
},
});
redirectRules.push(
createRedirectRule(40, "chatgpt.com", chatgptinstance)
);
}
chrome.declarativeNetRequest.updateDynamicRules({
removeRuleIds: [
Expand Down
3 changes: 2 additions & 1 deletion src/manifest-chrome.json → src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"*://*.stackexchange.com/*",
"*://www.google.com/*",
"*://translate.google.com/*",
"*://youtu.be/*"
"*://youtu.be/*",
"*://chatgpt.com/*"
]
}
1 change: 1 addition & 0 deletions src/onboarding.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ const permissionsToRequest = {
"*://*.stackexchange.com/*",
"*://www.google.com/*",
"*://translate.google.com/*",
"*://chatgpt.com/*"
],
};
async function requestPermissions() {
Expand Down
9 changes: 9 additions & 0 deletions src/popup/popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,15 @@ <h2>Predirect</h2>
autocapitalize="none"
/>
<br />
<label> <input type="checkbox" id="chatgpt" checked />Chatgpt </label>
<input
type="text"
id="chatgptinstances"
placeholder="Custom (eg- 'antifandom.com')"
autocorrect="off"
autocapitalize="none"
/>
<br />
<label> <input type="checkbox" id="snopes" checked />Snopes </label>
<input
type="text"
Expand Down