Index: new-options.js |
=================================================================== |
--- a/new-options.js |
+++ b/new-options.js |
@@ -866,6 +866,33 @@ |
setLinks("enable-aa-description", link); |
}); |
+ // Get browser specific links |
+ ext.backgroundPage.sendMessage({ |
+ type: "app.get", |
+ what: "browserInfo" |
+ }, |
+ ({platform, application}) => |
+ { |
+ if (platform == "chromium" && application == "opera") |
+ application = "opera"; |
+ else if (platform == "gecko") |
+ application = "firefox"; |
+ else if (application == "edge") |
+ application = "edge"; |
+ else |
+ application = "chrome"; |
+ |
+ getDocLink(application + "_support", url => |
+ { |
+ setLinks("visit-forum", url); |
+ }); |
+ |
+ getDocLink("adblock_plus_" + application + "_dnt", url => |
+ { |
+ setLinks("dnt", url); |
+ }); |
+ }); |
+ |
// Advanced tab |
let customize = document.querySelectorAll("#customize li[data-pref]"); |
customize = Array.prototype.map.call(customize, (checkbox) => |
@@ -914,10 +941,6 @@ |
{ |
setLinks("report-bug", link); |
}); |
- getDocLink("reporter_other_link", (link) => |
- { |
- setLinks("report-forum", link); |
- }); |
getDocLink("social_twitter", (link) => |
{ |
E("twitter").setAttribute("href", link); |