Um die Tausenden von hier verfügbaren Add-ons auszuprobieren, laden Sie Mozilla Firefox herunter, eine schnelle, kostenlose Möglichkeit, im Internet zu surfen!Schließen
Willkommen bei den Firefox-Add-ons.
Wählen Sie aus Tausenden von Zusatzfunktionen und Stilen, um sich Firefox zu Eigen zu machen.Schließen
Compatibility with GreaseMonkey? Bewertet mit 5 von 5 Sternen
I am using a Greasemoney script called "Greased Lightbox v0.17" for viewing the images on Google Image.
However, for new pages loaded by AutoPager, the Greased Lightbox script doesn't apply for those pages.
Is there any way to fix this?
Greased Lightbox script
AutoPager works well with the scripts which it modify the element directly.
But Greased Lightbox works in another way. Greased Lightbox go thought all the pictures in the page, records the target url, show functions and some other informations in a list. When a picture clicked, Greased Lightbox loops to find the properties in the list for the clicked item, and apply the show functions.
This will cause bad performance and not easy to compatible with others.
The right way should be just attach the properties to that picture or link. Thus when a picture clicked, it just show it according to it's properties. This will get better performance. And when AutoPager import the pictures to another page, the picture will still have the necessary information attached and Greased Lightbox will still works well.
Another way is to just register a global click event listener. It doesn't need to go through all the pictures and creates click event listeners for individually picture. When a picture clicked, it just check whether it's a supported picture, perform the applied actions.
This is also compatible with AutoPager.
You can pass this to the script author. He/she contact me for more information if need. Either through email or in my forum. You can find the info in the support info for AutoPager.