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-2015 Eyeo GmbH | 3 * Copyright (C) 2006-2015 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 1657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1668 | 1668 |
1669 let node = target; | 1669 let node = target; |
1670 while (node) | 1670 while (node) |
1671 { | 1671 { |
1672 if (node.nodeType == Ci.nsIDOMNode.ELEMENT_NODE) | 1672 if (node.nodeType == Ci.nsIDOMNode.ELEMENT_NODE) |
1673 { | 1673 { |
1674 let style = wnd.getComputedStyle(node, ""); | 1674 let style = wnd.getComputedStyle(node, ""); |
1675 let bgImage = extractImageURL(style, "background-image") || extractIma
geURL(style, "list-style-image"); | 1675 let bgImage = extractImageURL(style, "background-image") || extractIma
geURL(style, "list-style-image"); |
1676 if (bgImage) | 1676 if (bgImage) |
1677 { | 1677 { |
1678 let data = RequestNotifier.getDataForNode(wnd.document, true, Policy
.type.IMAGE, bgImage); | 1678 let data = RequestNotifier.getDataForNode(wnd.document, true, "IMAGE
", bgImage); |
1679 if (data && !data[1].filter) | 1679 if (data && !data[1].filter) |
1680 { | 1680 { |
1681 addMenuItem(data); | 1681 addMenuItem(data); |
1682 break; | 1682 break; |
1683 } | 1683 } |
1684 } | 1684 } |
1685 } | 1685 } |
1686 | 1686 |
1687 node = node.parentNode; | 1687 node = node.parentNode; |
1688 } | 1688 } |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1941 ["abp-command-contribute-hide", "command", UI.hideContributeButton.bind(UI)], | 1941 ["abp-command-contribute-hide", "command", UI.hideContributeButton.bind(UI)], |
1942 ["abp-command-toggleshownotifications", "command", Notification.toggleIgnoreCa
tegory.bind(Notification, "*", null)] | 1942 ["abp-command-toggleshownotifications", "command", Notification.toggleIgnoreCa
tegory.bind(Notification, "*", null)] |
1943 ]; | 1943 ]; |
1944 | 1944 |
1945 onShutdown.add(function() | 1945 onShutdown.add(function() |
1946 { | 1946 { |
1947 for (let window of UI.applicationWindows) | 1947 for (let window of UI.applicationWindows) |
1948 if (UI.isBottombarOpen(window)) | 1948 if (UI.isBottombarOpen(window)) |
1949 UI.toggleBottombar(window); | 1949 UI.toggleBottombar(window); |
1950 }); | 1950 }); |
OLD | NEW |