Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: options.js

Issue 29523647: Issue 5555 - [webextensions] Add a message for Firefox users on the options page (Closed) Base URL: https://hg.adblockplus.org/adblockpluschrome
Patch Set: Reordered CSS properties and made the link open in new tab Created Aug. 22, 2017, 6:43 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « options.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 });
OLDNEW
« no previous file with comments | « options.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld