LEFT | RIGHT |
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 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
393 addonVersion: "2.6.7" | 393 addonVersion: "2.6.7" |
394 }; | 394 }; |
395 updateFromURL(modules.info); | 395 updateFromURL(modules.info); |
396 | 396 |
397 modules.subscriptionInit = { | 397 modules.subscriptionInit = { |
398 reinitialized: params.filterlistsReinitialized | 398 reinitialized: params.filterlistsReinitialized |
399 }; | 399 }; |
400 | 400 |
401 modules.messaging = { | 401 modules.messaging = { |
402 port: new EventEmitter() | 402 port: new EventEmitter() |
403 }; | |
404 | |
405 modules.coreUtils = { | |
406 compareVersion(v1, v2) | |
407 { | |
408 return parseFloat(v1) - parseFloat(v2); | |
409 } | |
410 }; | 403 }; |
411 | 404 |
412 window.addEventListener("message", (event) => | 405 window.addEventListener("message", (event) => |
413 { | 406 { |
414 if (event.data.type != "message") | 407 if (event.data.type != "message") |
415 return; | 408 return; |
416 let message = event.data.payload; | 409 let message = event.data.payload; |
417 let {messageId} = event.data; | 410 let {messageId} = event.data; |
418 let sender = { | 411 let sender = { |
419 page: new ext.Page(event.source) | 412 page: new ext.Page(event.source) |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
602 }, | 595 }, |
603 filter: { | 596 filter: { |
604 text: "||example.com/some-annoying-popup$popup", | 597 text: "||example.com/some-annoying-popup$popup", |
605 whitelisted: false, | 598 whitelisted: false, |
606 userDefined: true, | 599 userDefined: true, |
607 subscription: null | 600 subscription: null |
608 } | 601 } |
609 }); | 602 }); |
610 }); | 603 }); |
611 }()); | 604 }()); |
LEFT | RIGHT |