| 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-present eyeo GmbH | 3 * Copyright (C) 2006-present 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 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 "click", toggleEnabled | 314 "click", toggleEnabled |
| 315 ); | 315 ); |
| 316 document.getElementById("clickhide").addEventListener( | 316 document.getElementById("clickhide").addEventListener( |
| 317 "click", activateClickHide | 317 "click", activateClickHide |
| 318 ); | 318 ); |
| 319 document.getElementById("clickhide-cancel").addEventListener( | 319 document.getElementById("clickhide-cancel").addEventListener( |
| 320 "click", cancelClickHide | 320 "click", cancelClickHide |
| 321 ); | 321 ); |
| 322 document.getElementById("issueReporter").addEventListener( | 322 document.getElementById("issueReporter").addEventListener( |
| 323 "click", reportIssue | 323 "click", reportIssue |
| 324 ) | 324 ); |
| 325 document.getElementById("options").addEventListener("click", () => | 325 document.getElementById("options").addEventListener("click", () => |
| 326 { | 326 { |
| 327 browser.runtime.sendMessage({type: "app.open", what: "options"}); | 327 browser.runtime.sendMessage({type: "app.open", what: "options"}); |
| 328 window.close(); | 328 window.close(); |
| 329 }); | 329 }); |
| 330 | 330 |
| 331 // Set up collapsing of menu items | 331 // Set up collapsing of menu items |
| 332 for (let collapser of document.getElementsByClassName("collapse")) | 332 for (let collapser of document.getElementsByClassName("collapse")) |
| 333 { | 333 { |
| 334 collapser.addEventListener("click", toggleCollapse); | 334 collapser.addEventListener("click", toggleCollapse); |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 399 { | 399 { |
| 400 if (event.target.id == "notification-optout") | 400 if (event.target.id == "notification-optout") |
| 401 setPref("notifications_ignoredcategories", true); | 401 setPref("notifications_ignoredcategories", true); |
| 402 | 402 |
| 403 notificationElement.hidden = true; | 403 notificationElement.hidden = true; |
| 404 notification.onClicked(); | 404 notification.onClicked(); |
| 405 } | 405 } |
| 406 }, true); | 406 }, true); |
| 407 }); | 407 }); |
| 408 }); | 408 }); |
| OLD | NEW |