| OLD | NEW | 
|     1 /* |     1 /* | 
|     2  * This file is part of Adblock Plus <https://adblockplus.org/>, |     2  * This file is part of Adblock Plus <https://adblockplus.org/>, | 
|     3  * Copyright (C) 2006-2016 Eyeo GmbH |     3  * Copyright (C) 2006-2016 Eyeo GmbH | 
|     4  * |     4  * | 
|     5  * Adblock Plus is free software: you can redistribute it and/or modify |     5  * Adblock Plus is free software: you can redistribute it and/or modify | 
|     6  * it under the terms of the GNU General Public License version 3 as |     6  * it under the terms of the GNU General Public License version 3 as | 
|     7  * published by the Free Software Foundation. |     7  * published by the Free Software Foundation. | 
|     8  * |     8  * | 
|     9  * Adblock Plus is distributed in the hope that it will be useful, |     9  * Adblock Plus is distributed in the hope that it will be useful, | 
|    10  * but WITHOUT ANY WARRANTY; without even the implied warranty of |    10  * but WITHOUT ANY WARRANTY; without even the implied warranty of | 
| (...skipping 739 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   750         list.removeChild(list.lastChild); |   750         list.removeChild(list.lastChild); | 
|   751  |   751  | 
|   752       for (let i = 0; i < this.outdated.length; i++) |   752       for (let i = 0; i < this.outdated.length; i++) | 
|   753       { |   753       { | 
|   754         let subscription = this.outdated[i]; |   754         let subscription = this.outdated[i]; | 
|   755         let entry = template.cloneNode(true); |   755         let entry = template.cloneNode(true); | 
|   756         entry.removeAttribute("id"); |   756         entry.removeAttribute("id"); | 
|   757         entry.removeAttribute("hidden"); |   757         entry.removeAttribute("hidden"); | 
|   758         entry.setAttribute("_url", subscription.url); |   758         entry.setAttribute("_url", subscription.url); | 
|   759         entry.setAttribute("tooltiptext", subscription.url); |   759         entry.setAttribute("tooltiptext", subscription.url); | 
|   760         entry.textContent = subscription.title; |   760         entry.textContent = getSubscriptionTitle(subscription); | 
|   761         list.appendChild(entry); |   761         list.appendChild(entry); | 
|   762       } |   762       } | 
|   763     } |   763     } | 
|   764     return !E("updateInProgress").hidden || !E("outdatedSubscriptions").hidden; |   764     return !E("updateInProgress").hidden || !E("outdatedSubscriptions").hidden; | 
|   765   }, |   765   }, | 
|   766  |   766  | 
|   767   showPage: function() |   767   showPage: function() | 
|   768   { |   768   { | 
|   769     document.documentElement.canAdvance = false; |   769     document.documentElement.canAdvance = false; | 
|   770  |   770  | 
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   989  |   989  | 
|   990     let disabledSubscriptionsBox = E("issuesDisabledSubscriptions"); |   990     let disabledSubscriptionsBox = E("issuesDisabledSubscriptions"); | 
|   991     if (this.disabledSubscriptions.length && !disabledSubscriptionsBox.firstChil
      d) |   991     if (this.disabledSubscriptions.length && !disabledSubscriptionsBox.firstChil
      d) | 
|   992     { |   992     { | 
|   993       let template = E("issuesDisabledSubscriptionsTemplate"); |   993       let template = E("issuesDisabledSubscriptionsTemplate"); | 
|   994       for (let subscription of this.disabledSubscriptions) |   994       for (let subscription of this.disabledSubscriptions) | 
|   995       { |   995       { | 
|   996         let element = template.cloneNode(true); |   996         let element = template.cloneNode(true); | 
|   997         element.removeAttribute("id"); |   997         element.removeAttribute("id"); | 
|   998         element.removeAttribute("hidden"); |   998         element.removeAttribute("hidden"); | 
|   999         element.firstChild.setAttribute("value", subscription.title); |   999         element.firstChild.setAttribute("value", getSubscriptionTitle(subscripti
      on)); | 
|  1000         element.setAttribute("tooltiptext", subscription instanceof Downloadable
      Subscription ? subscription.url : subscription.title); |  1000         element.setAttribute("tooltiptext", subscription instanceof Downloadable
      Subscription ? subscription.url : getSubscriptionTitle(subscription)); | 
|  1001         element.abpSubscription = subscription; |  1001         element.abpSubscription = subscription; | 
|  1002         disabledSubscriptionsBox.appendChild(element); |  1002         disabledSubscriptionsBox.appendChild(element); | 
|  1003       } |  1003       } | 
|  1004     } |  1004     } | 
|  1005     E("issuesDisabledSubscriptionsBox").hidden = (type != "false negative" || th
      is.disabledSubscriptions.length == 0); |  1005     E("issuesDisabledSubscriptionsBox").hidden = (type != "false negative" || th
      is.disabledSubscriptions.length == 0); | 
|  1006  |  1006  | 
|  1007     let disabledFiltersBox = E("issuesDisabledFilters"); |  1007     let disabledFiltersBox = E("issuesDisabledFilters"); | 
|  1008     if (this.disabledFilters.length && !disabledFiltersBox.firstChild) |  1008     if (this.disabledFilters.length && !disabledFiltersBox.firstChild) | 
|  1009     { |  1009     { | 
|  1010       let template = E("issuesDisabledFiltersTemplate"); |  1010       let template = E("issuesDisabledFiltersTemplate"); | 
| (...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1554  |  1554  | 
|  1555 function censorURL(url) |  1555 function censorURL(url) | 
|  1556 { |  1556 { | 
|  1557   return url.replace(/([?;&\/#][^?;&\/#]+?=)[^?;&\/#]+/g, "$1*"); |  1557   return url.replace(/([?;&\/#][^?;&\/#]+?=)[^?;&\/#]+/g, "$1*"); | 
|  1558 } |  1558 } | 
|  1559  |  1559  | 
|  1560 function encodeHTML(str) |  1560 function encodeHTML(str) | 
|  1561 { |  1561 { | 
|  1562   return str.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").
      replace(/"/g, """); |  1562   return str.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").
      replace(/"/g, """); | 
|  1563 } |  1563 } | 
| OLD | NEW |