Skip to content

Commit 8b078eb

Browse files
authored
Last upload before new release
+ Got more specific with the selector for changing dat:// links in datsite.js.
1 parent 567535e commit 8b078eb

3 files changed

Lines changed: 10 additions & 5 deletions

File tree

chrome extension/datsite.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1-
var DatPart = true;
1+
var DatPart = true;
2+
3+
Array.from(document.querySelectorAll('a[href^="dat://"]:not(a[href*="."])')).forEach(function(link){
4+
var theLink = link.href;
5+
link.href = "web+" + theLink;
6+
});

chrome extension/firefox-manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"short_name": "DatPart",
44
"description": "DatPart extension.",
55
"manifest_version": 2,
6-
"version": "0.0.19",
6+
"version": "0.0.20",
77
"applications": {
88
"gecko": {
99
"strict_min_version": "57"
@@ -40,7 +40,7 @@
4040
{
4141
"matches": ["*://*.dat_site/*"],
4242
"run_at": "document_start",
43-
"js": ["datparse.js"]
43+
"js": ["datsite.js"]
4444
}
4545
],
4646
"icons": {

chrome extension/manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"short_name": "DatPart",
44
"description": "DatPart extension.",
55
"manifest_version": 2,
6-
"version": "0.0.19",
7-
"version_name": "0.0.19",
6+
"version": "0.0.20",
7+
"version_name": "0.0.20 alpha",
88
"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"],
99
"optional_permissions": [ "tabs", "notifications", "background", "http://localhost/", "https://*/.well-known/dat" ],
1010
"externally_connectable": { "ids": [ "pgdnnmekclkafnpfofleebhhnmolopgl" ] },

0 commit comments

Comments
 (0)