Skip to content

Commit

Permalink
Update wikipedia rules
Browse files Browse the repository at this point in the history
  • Loading branch information
PRO-2684 committed Sep 22, 2024
1 parent 1010166 commit 0747476
Showing 1 changed file with 24 additions and 20 deletions.
44 changes: 24 additions & 20 deletions alternative.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,29 +11,33 @@
"author": "PRO-2684"
},
"wikipedia.org/": {
"wiki": {
"description": "Wikipedia to Wikiwand (en)",
"mode": "regex",
"regex": [
"^https?://wikipedia\\.org/wiki/"
],
"replace": [
"https://www.wikiwand.com/en/"
],
"author": "PRO-2684"
"wiki/": {
"/.+": {
"description": "Wikipedia to Wikiwand (en)",
"mode": "regex",
"regex": [
"^https?://wikipedia\\.org/wiki/([^?]*)$"
],
"replace": [
"https://www.wikiwand.com/en/articles/$1"
],
"author": "PRO-2684"
}
}
},
"/[^.]+\\.wikipedia\\.org/": {
"wiki": {
"description": "Wikipedia to Wikiwand (lang)",
"mode": "regex",
"regex": [
"^https?://([^.]+)\\.wikipedia\\.org/wiki/"
],
"replace": [
"https://www.wikiwand.com/$1/"
],
"author": "PRO-2684"
"wiki/": {
"/.+": {
"description": "Wikipedia to Wikiwand (lang)",
"mode": "regex",
"regex": [
"^https?://([^.]+)\\.wikipedia\\.org/wiki/([^?]*)$"
],
"replace": [
"https://www.wikiwand.com/$1/articles/$2"
],
"author": "PRO-2684"
}
}
},
"www.reddit.com": {
Expand Down

0 comments on commit 0747476

Please sign in to comment.