| 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 { | 111 { |
| 112 getInfo("platform", platform => | 112 getInfo("platform", platform => |
| 113 { | 113 { |
| 114 if (platform == "chromium" && application != "opera") | 114 if (platform == "chromium" && application != "opera") |
| 115 application = "chrome"; | 115 application = "chrome"; |
| 116 | 116 |
| 117 getDocLink(application + "_support", url => | 117 getDocLink(application + "_support", url => |
| 118 { | 118 { |
| 119 setLinks("found-a-bug", url); | 119 setLinks("found-a-bug", url); |
| 120 }); | 120 }); |
| 121 |
| 122 if (platform == "gecko") |
| 123 $("#firefox-warning").removeAttr("hidden"); |
| 121 }); | 124 }); |
| 122 }); | 125 }); |
| 123 | 126 |
| 124 // Add event listeners | 127 // Add event listeners |
| 125 $("#updateFilterLists").click(updateFilterLists); | 128 $("#updateFilterLists").click(updateFilterLists); |
| 126 $("#startSubscriptionSelection").click(startSubscriptionSelection); | 129 $("#startSubscriptionSelection").click(startSubscriptionSelection); |
| 127 $("#subscriptionSelector").change(updateSubscriptionSelection); | 130 $("#subscriptionSelector").change(updateSubscriptionSelection); |
| 128 $("#addSubscription").click(addSubscriptionClicked); | 131 $("#addSubscription").click(addSubscriptionClicked); |
| 129 $("#acceptableAds").click(toggleAcceptableAds); | 132 $("#acceptableAds").click(toggleAcceptableAds); |
| 130 $("#whitelistForm").submit(addWhitelistDomain); | 133 $("#whitelistForm").submit(addWhitelistDomain); |
| (...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 735 onFilterMessage(message.action, message.args[0]); | 738 onFilterMessage(message.action, message.args[0]); |
| 736 break; | 739 break; |
| 737 case "prefs.respond": | 740 case "prefs.respond": |
| 738 onPrefMessage(message.action, message.args[0]); | 741 onPrefMessage(message.action, message.args[0]); |
| 739 break; | 742 break; |
| 740 case "subscriptions.respond": | 743 case "subscriptions.respond": |
| 741 onSubscriptionMessage(message.action, message.args[0]); | 744 onSubscriptionMessage(message.action, message.args[0]); |
| 742 break; | 745 break; |
| 743 } | 746 } |
| 744 }); | 747 }); |
| OLD | NEW |