parent
f8e482001a
commit
812fddb71f
|
@ -28,7 +28,7 @@ chrome.runtime.onMessage.addListener(function (msg, sender, sendResponse) {
|
|||
function redirectToBreezeWiki(storage, eventInfo, url) {
|
||||
function processRedirect(host) {
|
||||
const subdomain = url.hostname.split(".")[0];
|
||||
const article = url.href.split('fandom.com/wiki/')[1];
|
||||
const article = url.href.split('fandom.com/wiki/')[1].replaceAll('%20', '_');
|
||||
if (article) {
|
||||
chrome.tabs.update(eventInfo.tabId, { url: host + '/' + subdomain + '/wiki/' + article });
|
||||
} else {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "Indie Wiki Buddy",
|
||||
"version": "1.1.1",
|
||||
"version": "1.1.2",
|
||||
"description": "Helping you discover quality independent wikis through alerts, redirects, and search filtering",
|
||||
"permissions": [
|
||||
"storage",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "Indie Wiki Buddy",
|
||||
"version": "1.1.1",
|
||||
"version": "1.1.2",
|
||||
"description": "Helping you discover quality independent wikis through alerts, redirects, and search filtering",
|
||||
"permissions": [
|
||||
"storage",
|
||||
|
|
Loading…
Reference in New Issue