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

Side by Side Diff: lib/prefs.js

Issue 5589897452716032: Implemented ext.contextMenus for Safari (Closed)
Patch Set: Created Jan. 18, 2014, 10:29 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * This file is part of Adblock Plus <http://adblockplus.org/>, 2 * This file is part of Adblock Plus <http://adblockplus.org/>,
3 * Copyright (C) 2006-2013 Eyeo GmbH 3 * Copyright (C) 2006-2013 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 18 matching lines...) Expand all
29 privateBrowsing: false, 29 privateBrowsing: false,
30 subscriptions_fallbackerrors: 5, 30 subscriptions_fallbackerrors: 5,
31 subscriptions_fallbackurl: "https://adblockplus.org/getSubscription?version=%V ERSION%&url=%SUBSCRIPTION%&downloadURL=%URL%&error=%ERROR%&channelStatus=%CHANNE LSTATUS%&responseStatus=%RESPONSESTATUS%", 31 subscriptions_fallbackurl: "https://adblockplus.org/getSubscription?version=%V ERSION%&url=%SUBSCRIPTION%&downloadURL=%URL%&error=%ERROR%&channelStatus=%CHANNE LSTATUS%&responseStatus=%RESPONSESTATUS%",
32 subscriptions_autoupdate: true, 32 subscriptions_autoupdate: true,
33 subscriptions_exceptionsurl: "https://easylist-downloads.adblockplus.org/excep tionrules.txt", 33 subscriptions_exceptionsurl: "https://easylist-downloads.adblockplus.org/excep tionrules.txt",
34 documentation_link: "https://adblockplus.org/redirect?link=%LINK%&lang=%LANG%" , 34 documentation_link: "https://adblockplus.org/redirect?link=%LINK%&lang=%LANG%" ,
35 notificationdata: {}, 35 notificationdata: {},
36 notificationurl: "https://notification.adblockplus.org/notification.json", 36 notificationurl: "https://notification.adblockplus.org/notification.json",
37 stats_total: {}, 37 stats_total: {},
38 show_statsinicon: true, 38 show_statsinicon: true,
39 show_statsinpopup: true 39 show_statsinpopup: true,
40 shouldShowBlockElementMenu: true,
41 hidePlaceholders: true
40 }; 42 };
41 43
42 let listeners = []; 44 let listeners = [];
43 45
44 function defineProperty(key) 46 function defineProperty(key)
45 { 47 {
46 let value = null; 48 let value = null;
47 Prefs.__defineGetter__(key, function() 49 Prefs.__defineGetter__(key, function()
48 { 50 {
49 if (value === null) 51 if (value === null)
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 removeListener: function(listener) 98 removeListener: function(listener)
97 { 99 {
98 let index = listeners.indexOf(listener); 100 let index = listeners.indexOf(listener);
99 if (index >= 0) 101 if (index >= 0)
100 listeners.splice(index, 1); 102 listeners.splice(index, 1);
101 }, 103 },
102 }; 104 };
103 105
104 for (let key in defaults) 106 for (let key in defaults)
105 defineProperty(key); 107 defineProperty(key);
OLDNEW
« no previous file with comments | « include.postload.js ('k') | options.js » ('j') | safari/background.js » ('J')

Powered by Google App Engine
This is Rietveld