Skip to content

Commit

Permalink
Last upload before new release
Browse files Browse the repository at this point in the history
+ Got more specific with the selector for changing dat:// links in datsite.js.
  • Loading branch information
HughIsaacs2 authored Mar 30, 2019
1 parent 567535e commit 8b078eb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
7 changes: 6 additions & 1 deletion chrome extension/datsite.js
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
var DatPart = true;
var DatPart = true;

Array.from(document.querySelectorAll('a[href^="dat://"]:not(a[href*="."])')).forEach(function(link){
var theLink = link.href;
link.href = "web+" + theLink;
});
4 changes: 2 additions & 2 deletions chrome extension/firefox-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -40,7 +40,7 @@
{
"matches": ["*://*.dat_site/*"],
"run_at": "document_start",
"js": ["datparse.js"]
"js": ["datsite.js"]
}
],
"icons": {
Expand Down
4 changes: 2 additions & 2 deletions chrome extension/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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" ] },
Expand Down

0 comments on commit 8b078eb

Please sign in to comment.