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

Delta Between Two Patch Sets: background.js

Issue 29337729: Issue 2374 - Implemented Tweaks section in options page (Closed)
Left Patch Set: Rebased to 0e4b41190cf5 Created March 15, 2016, 2:43 p.m.
Right Patch Set: Created March 16, 2016, 11:13 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « README.md ('k') | locale/en-US/options.json » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 modules.prefs = { 94 modules.prefs = {
95 Prefs: { 95 Prefs: {
96 onChanged: new Notifier() 96 onChanged: new Notifier()
97 } 97 }
98 }; 98 };
99 var prefs = { 99 var prefs = {
100 notifications_ignoredcategories: (params.showNotificationUI) ? ["*"] : [], 100 notifications_ignoredcategories: (params.showNotificationUI) ? ["*"] : [],
101 notifications_showui: params.showNotificationUI, 101 notifications_showui: params.showNotificationUI,
102 safari_contentblocker: false, 102 safari_contentblocker: false,
103 shouldShowBlockElementMenu: true, 103 shouldShowBlockElementMenu: true,
104 show_devtools_panel: true,
104 subscriptions_exceptionsurl: "https://easylist-downloads.adblockplus.org/exc eptionrules.txt" 105 subscriptions_exceptionsurl: "https://easylist-downloads.adblockplus.org/exc eptionrules.txt"
105 }; 106 };
106 Object.keys(prefs).forEach(function(key) 107 Object.keys(prefs).forEach(function(key)
107 { 108 {
108 Object.defineProperty(modules.prefs.Prefs, key, { 109 Object.defineProperty(modules.prefs.Prefs, key, {
109 get: function() 110 get: function()
110 { 111 {
111 return prefs[key]; 112 return prefs[key];
112 }, 113 },
113 set: function(value) 114 set: function(value)
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 469
469 if (params.safariContentBlocker) 470 if (params.safariContentBlocker)
470 { 471 {
471 global.safari = { 472 global.safari = {
472 extension: { 473 extension: {
473 setContentBlocker: function() {} 474 setContentBlocker: function() {}
474 } 475 }
475 }; 476 };
476 } 477 }
477 })(this); 478 })(this);
LEFTRIGHT

Powered by Google App Engine
This is Rietveld