force all View/Add links to be Piwik downloads

related to #10, after 30ish days, it’ll no longer be necessary to make
the second set of api calls for outlinks when calculating the FilScore
This commit is contained in:
Collin M. Barrett 2017-02-03 19:51:17 -06:00
parent f55bfd8761
commit a251c01573
4 changed files with 4 additions and 4 deletions

View file

@ -6,7 +6,7 @@ function GenerateHtmlAddLink(url, listName) {
return url;
} else {
if (url && url != "#N/A") {
var html = "<a href=\"abp:subscribe?location=" + url + "&title=" + listName + "\" title=\"Subscribe to " + listName + " in your content blocker.\" class=\"button\">Add</a>";
var html = "<a href=\"abp:subscribe?location=" + url + "&title=" + listName + "\" title=\"Subscribe to " + listName + " in your content blocker.\" class=\"button piwik_download\">Add</a>";
return html;
} else {
return "";

View file

@ -12,7 +12,7 @@ function GenerateHtmlAddLinkCombo(url, listName, masterLists) {
listName = listName.slice(0, -3)
}
if (url && url != "#N/A") {
var html = "<a href=\"abp:subscribe?location=" + url + "&title=" + listName + "\" title=\"Subscribe to " + listName + " in your content blocker.\" class=\"button\">Add</a>";
var html = "<a href=\"abp:subscribe?location=" + url + "&title=" + listName + "\" title=\"Subscribe to " + listName + " in your content blocker.\" class=\"button piwik_download\">Add</a>";
return html;
} else {
return "";

View file

@ -6,7 +6,7 @@ function GenerateHtmlViewLink(url, listName) {
return url;
} else {
if (url && url != "#N/A") {
var html = "<a href=\"" + url + "\" title=\"Preview " + listName + " in your browser.\" class=\"button\">View</a>";
var html = "<a href=\"" + url + "\" title=\"Preview " + listName + " in your browser.\" class=\"button piwik_download\">View</a>";
return html;
} else {
return "";

View file

@ -12,7 +12,7 @@ function GenerateHtmlViewLinkCombo(url, listName, masterLists) {
listName = listName.slice(0, -3)
}
if (url && url != "#N/A") {
var html = "<a href=\"" + url + "\" title=\"Preview " + listName + " in your browser.\" class=\"button\">View</a>";
var html = "<a href=\"" + url + "\" title=\"Preview " + listName + " in your browser.\" class=\"button piwik_download\">View</a>";
return html;
} else {
return "";