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

Add Dark Souls 1-3 and Demon's Souls wiki entries #401

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
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: 3 additions & 0 deletions background.js
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,9 @@ async function main(url, tabId) {
case 'doku':
searchParams = 'start?do=search&q=' + article;
break;
case 'wikidot': // TODO: This won't work for wikidot pages using alternative search components, will need special handling (e.g. SCP Wiki)
searchParams = article;
break;
}
newURL = 'https://' + site["destination_base_url"] + site["destination_search_path"] + searchParams;
} else {
Expand Down
92 changes: 91 additions & 1 deletion data/sitesEN.json
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,60 @@
"destination_main_page": "Main_Page",
"destination_search_path": "/w/index.php"
},
{
"id": "en-darksouls",
"origins_label": "Dark Souls Fextralife Wiki",
"origins": [
{
"origin": "Dark Souls Fextralife Wiki",
"origin_base_url": "darksouls.wiki.fextralife.com",
"origin_content_path": "/",
"origin_main_page": "Dark+Souls+Wiki"
}
],
"destination": "Dark Souls Wiki",
"destination_base_url": "darksouls.wikidot.com",
"destination_platform": "wikidot",
"destination_icon": "darksouls.png",
"destination_main_page": "index.php",
"destination_search_path": "/search:site/q/"
},
{
"id": "en-darksouls2",
"origins_label": "Dark Souls II Fextralife Wiki",
"origins": [
{
"origin": "Dark Souls II Fextralife Wiki",
"origin_base_url": "darksouls2.wiki.fextralife.com",
"origin_content_path": "/",
"origin_main_page": "Dark+Souls+2+Wiki"
}
],
"destination": "Dark Souls II Wiki",
"destination_base_url": "darksouls2.wikidot.com",
"destination_platform": "wikidot",
"destination_icon": "darksouls2.png",
"destination_main_page": "index.php",
"destination_search_path": "/search:site/q/"
},
{
"id": "en-darksouls3",
"origins_label": "Dark Souls III Fextralife Wiki",
"origins": [
{
"origin": "Dark Souls III Fextralife Wiki",
"origin_base_url": "darksouls3.wiki.fextralife.com",
"origin_content_path": "/",
"origin_main_page": "Dark+Souls+3+Wiki"
}
],
"destination": "Dark Souls III Wiki",
"destination_base_url": "darksouls3.wikidot.com",
"destination_platform": "wikidot",
"destination_icon": "darksouls3.png",
"destination_main_page": "index.php",
"destination_search_path": "/search:site/q/"
},
{
"id": "en-deadcells",
"origins_label": "Dead Cells Fandom Wiki",
Expand Down Expand Up @@ -669,6 +723,42 @@
"official"
]
},
{
"id": "en-demonssouls-fandom",
"origins_label": "Demon's Souls Fandom Wiki",
"origins": [
{
"origin": "Demon's Souls Fandom Wiki",
"origin_base_url": "demonssouls.fandom.com",
"origin_content_path": "/wiki/",
"origin_main_page": "Demon's_Souls_Wiki"
}
],
"destination": "Demon's Souls Wiki",
"destination_base_url": "demonssouls.wikidot.com",
"destination_platform": "wikidot",
"destination_icon": "demonssouls.png",
"destination_main_page": "index.php",
"destination_search_path": "/search:site/q/"
},
{
"id": "en-demonssouls-fextralife",
"origins_label": "Demon's Souls Fextralife Wiki",
"origins": [
{
"origin": "Demon's Souls Fextralife Wiki",
"origin_base_url": "demonssouls.wiki.fextralife.com",
"origin_content_path": "/",
"origin_main_page": "Demons+Souls+Wiki"
}
],
"destination": "Demon's Souls Wiki",
"destination_base_url": "demonssouls.wikidot.com",
"destination_platform": "wikidot",
"destination_icon": "demonssouls.png",
"destination_main_page": "index.php",
"destination_search_path": "/search:site/q/"
},
{
"id": "en-destiny",
"origins_label": "Destiny Fandom Wiki",
Expand Down Expand Up @@ -3143,4 +3233,4 @@
"destination_main_page": "Main_Page",
"destination_search_path": "/w/index.php"
}
]
]
Binary file added favicons/en/darksouls.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added favicons/en/darksouls2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added favicons/en/darksouls3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added favicons/en/demonssouls.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.