| 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 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 // Position in upper-left all the time | 318 // Position in upper-left all the time |
| 319 clickHideFiltersDialog.style.left = "50px"; | 319 clickHideFiltersDialog.style.left = "50px"; |
| 320 clickHideFiltersDialog.style.top = "50px"; | 320 clickHideFiltersDialog.style.top = "50px"; |
| 321 | 321 |
| 322 // Make dialog partly transparent when mouse isn't over it so user has a bette
r | 322 // Make dialog partly transparent when mouse isn't over it so user has a bette
r |
| 323 // view of what's going to be blocked | 323 // view of what's going to be blocked |
| 324 clickHideFiltersDialog.onmouseout = function() | 324 clickHideFiltersDialog.onmouseout = function() |
| 325 { | 325 { |
| 326 if (clickHideFiltersDialog) | 326 if (clickHideFiltersDialog) |
| 327 clickHideFiltersDialog.style.setProperty("opacity", "0.7"); | 327 clickHideFiltersDialog.style.setProperty("opacity", "0.7"); |
| 328 } | 328 }; |
| 329 clickHideFiltersDialog.onmouseover = function() | 329 clickHideFiltersDialog.onmouseover = function() |
| 330 { | 330 { |
| 331 if (clickHideFiltersDialog) | 331 if (clickHideFiltersDialog) |
| 332 clickHideFiltersDialog.style.setProperty("opacity", "1.0"); | 332 clickHideFiltersDialog.style.setProperty("opacity", "1.0"); |
| 333 } | 333 }; |
| 334 | 334 |
| 335 document.body.appendChild(clickHideFiltersDialog); | 335 document.body.appendChild(clickHideFiltersDialog); |
| 336 } | 336 } |
| 337 | 337 |
| 338 // Turn on the choose element to create filter thing | 338 // Turn on the choose element to create filter thing |
| 339 function clickHide_activate() { | 339 function clickHide_activate() { |
| 340 if(document == null) | 340 if(document == null) |
| 341 return; | 341 return; |
| 342 | 342 |
| 343 // If we are already selecting, abort now | 343 // If we are already selecting, abort now |
| (...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 691 element.parentNode.removeChild(element); | 691 element.parentNode.removeChild(element); |
| 692 } | 692 } |
| 693 clickHide_deactivate(); | 693 clickHide_deactivate(); |
| 694 break; | 694 break; |
| 695 } | 695 } |
| 696 }); | 696 }); |
| 697 | 697 |
| 698 if (window == window.top) | 698 if (window == window.top) |
| 699 ext.backgroundPage.sendMessage({type: "report-html-page"}); | 699 ext.backgroundPage.sendMessage({type: "report-html-page"}); |
| 700 } | 700 } |
| OLD | NEW |