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 1644 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1655 | 1655 |
1656 let node = target; | 1656 let node = target; |
1657 while (node) | 1657 while (node) |
1658 { | 1658 { |
1659 if (node.nodeType == Ci.nsIDOMNode.ELEMENT_NODE) | 1659 if (node.nodeType == Ci.nsIDOMNode.ELEMENT_NODE) |
1660 { | 1660 { |
1661 let style = wnd.getComputedStyle(node, ""); | 1661 let style = wnd.getComputedStyle(node, ""); |
1662 let bgImage = extractImageURL(style, "background-image") || extractIma
geURL(style, "list-style-image"); | 1662 let bgImage = extractImageURL(style, "background-image") || extractIma
geURL(style, "list-style-image"); |
1663 if (bgImage) | 1663 if (bgImage) |
1664 { | 1664 { |
1665 let data = RequestNotifier.getDataForNode(wnd.document, true, Policy
.type.IMAGE, bgImage); | 1665 let data = RequestNotifier.getDataForNode(wnd.document, true, "IMAGE
", bgImage); |
1666 if (data && !data[1].filter) | 1666 if (data && !data[1].filter) |
1667 { | 1667 { |
1668 addMenuItem(data); | 1668 addMenuItem(data); |
1669 break; | 1669 break; |
1670 } | 1670 } |
1671 } | 1671 } |
1672 } | 1672 } |
1673 | 1673 |
1674 node = node.parentNode; | 1674 node = node.parentNode; |
1675 } | 1675 } |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1928 ["abp-command-contribute-hide", "command", UI.hideContributeButton.bind(UI)], | 1928 ["abp-command-contribute-hide", "command", UI.hideContributeButton.bind(UI)], |
1929 ["abp-command-toggleshownotifications", "command", Notification.toggleIgnoreCa
tegory.bind(Notification, "*", null)] | 1929 ["abp-command-toggleshownotifications", "command", Notification.toggleIgnoreCa
tegory.bind(Notification, "*", null)] |
1930 ]; | 1930 ]; |
1931 | 1931 |
1932 onShutdown.add(function() | 1932 onShutdown.add(function() |
1933 { | 1933 { |
1934 for (let window of UI.applicationWindows) | 1934 for (let window of UI.applicationWindows) |
1935 if (UI.isBottombarOpen(window)) | 1935 if (UI.isBottombarOpen(window)) |
1936 UI.toggleBottombar(window); | 1936 UI.toggleBottombar(window); |
1937 }); | 1937 }); |
OLD | NEW |