OLD | NEW |
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-2014 Eyeo GmbH | 3 * Copyright (C) 2006-2014 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 clickHide_deactivate(); | 111 clickHide_deactivate(); |
112 currentElement = savedElement; | 112 currentElement = savedElement; |
113 } | 113 } |
114 | 114 |
115 clickHide_filters = filters; | 115 clickHide_filters = filters; |
116 | 116 |
117 clickHideFiltersDialog = document.createElement("iframe"); | 117 clickHideFiltersDialog = document.createElement("iframe"); |
118 clickHideFiltersDialog.src = ext.getURL("block.html"); | 118 clickHideFiltersDialog.src = ext.getURL("block.html"); |
119 clickHideFiltersDialog.setAttribute("style", "position: fixed !important; visi
bility: hidden; display: block !important; border: 0px !important;"); | 119 clickHideFiltersDialog.setAttribute("style", "position: fixed !important; visi
bility: hidden; display: block !important; border: 0px !important;"); |
120 clickHideFiltersDialog.style.WebkitBoxShadow = "5px 5px 20px rgba(0,0,0,0.5)"; | 120 clickHideFiltersDialog.style.WebkitBoxShadow = "5px 5px 20px rgba(0,0,0,0.5)"; |
121 clickHideFiltersDialog.style.zIndex = 99999; | 121 clickHideFiltersDialog.style.zIndex = 0x7FFFFFFF; |
122 | 122 |
123 // Position in upper-left all the time | 123 // Position in upper-left all the time |
124 clickHideFiltersDialog.style.left = "50px"; | 124 clickHideFiltersDialog.style.left = "50px"; |
125 clickHideFiltersDialog.style.top = "50px"; | 125 clickHideFiltersDialog.style.top = "50px"; |
126 | 126 |
127 // Make dialog partly transparent when mouse isn't over it so user has a bette
r | 127 // Make dialog partly transparent when mouse isn't over it so user has a bette
r |
128 // view of what's going to be blocked | 128 // view of what's going to be blocked |
129 clickHideFiltersDialog.onmouseout = function() | 129 clickHideFiltersDialog.onmouseout = function() |
130 { | 130 { |
131 if (clickHideFiltersDialog) | 131 if (clickHideFiltersDialog) |
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
569 | 569 |
570 clickHide_deactivate(); | 570 clickHide_deactivate(); |
571 } | 571 } |
572 break; | 572 break; |
573 default: | 573 default: |
574 sendResponse({}); | 574 sendResponse({}); |
575 break; | 575 break; |
576 } | 576 } |
577 }); | 577 }); |
578 } | 578 } |
OLD | NEW |