Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update NixOS Wiki link #3

Closed
wants to merge 1 commit into from
Closed
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Redirects the old NixOS wiki to the new URL

This web browser extension redirects all nixos.wiki links to wiki.nixos.org.
This web browser extension redirects all wiki.nixos.org links to wiki.nixos.org.
* 12 lines of code, will not eat your homework.

TODO: to make it easy to install these types of extensions, they need to be signed and uploaded to addons.mozilla.org.
Expand Down
2 changes: 1 addition & 1 deletion background.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ browser.webRequest.onBeforeRequest.addListener(
};
},
{
urls: ["*://nixos.wiki/*"],
urls: ["*://wiki.nixos.org/*"],
types: ["main_frame"]
},
["blocking"]
Expand Down
4 changes: 2 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"manifest_version": 2,
"name": "NixOS Wiki Redirect",
"version": "1.0",
"description": "Redirects nixos.wiki to wiki.nixos.org",
"description": "Redirects wiki.nixos.org to wiki.nixos.org",
"permissions": [
"webRequest",
"webRequestBlocking",
"*://nixos.wiki/*"
"*://wiki.nixos.org/*"
],
"applications": {
"gecko": {
Expand Down