diff --git a/chrome extension/datsite.js b/chrome extension/datsite.js index 31ff3b0..72231e1 100644 --- a/chrome extension/datsite.js +++ b/chrome extension/datsite.js @@ -1 +1,6 @@ -var DatPart = true; \ No newline at end of file +var DatPart = true; + +Array.from(document.querySelectorAll('a[href^="dat://"]:not(a[href*="."])')).forEach(function(link){ + var theLink = link.href; + link.href = "web+" + theLink; +}); \ No newline at end of file diff --git a/chrome extension/firefox-manifest.json b/chrome extension/firefox-manifest.json index 2eef216..506fade 100644 --- a/chrome extension/firefox-manifest.json +++ b/chrome extension/firefox-manifest.json @@ -3,7 +3,7 @@ "short_name": "DatPart", "description": "DatPart extension.", "manifest_version": 2, - "version": "0.0.19", + "version": "0.0.20", "applications": { "gecko": { "strict_min_version": "57" @@ -40,7 +40,7 @@ { "matches": ["*://*.dat_site/*"], "run_at": "document_start", - "js": ["datparse.js"] + "js": ["datsite.js"] } ], "icons": { diff --git a/chrome extension/manifest.json b/chrome extension/manifest.json index 787d496..ca4afbd 100644 --- a/chrome extension/manifest.json +++ b/chrome extension/manifest.json @@ -3,8 +3,8 @@ "short_name": "DatPart", "description": "DatPart extension.", "manifest_version": 2, - "version": "0.0.19", - "version_name": "0.0.19", + "version": "0.0.20", + "version_name": "0.0.20 alpha", "permissions": ["tabs", "activeTab", "webRequestBlocking", "webRequest", "webNavigation", "proxy", "http://127.0.0.1:9989/*", "http://127.0.0.1:9988/*", "http://localhost:9989/", "http://localhost:9988/", "*://*.dat_site/*", "*://*.torrent_site/*", "storage", "nativeMessaging"], "optional_permissions": [ "tabs", "notifications", "background", "http://localhost/", "https://*/.well-known/dat" ], "externally_connectable": { "ids": [ "pgdnnmekclkafnpfofleebhhnmolopgl" ] },