Sleazy Fork is available in English.

Handy Image

Shows just fullsize Image with hotkeys & without pop-ups on many image-hosting sites

< Σχολιασμός για τον κώδικα Handy Image

Αναφορά: Καλός - ο κώδικας λειτουργεί

FFW
§
Δημοσιεύτηκε: 13/10/2015

Limit access to other scripts on Tampermonkey

When the script is active, it would block others, unlike on Firefox.

To show what I mean.. Try to set a script that alerts something. It wouldn't!

// ==UserScript==
// @name        Firefox is awesome!
// @namespace   932567636
// @include     *
// @version     0.1
// @grant       none
// ==/UserScript==

window.addEventListener("keydown", function (event) {
  if (event.altKey) { // Press Alt to know the truth..
    alert('Firefox is awesome!');
  }
});
OwynΔημιουργός
§
Δημοσιεύτηκε: 13/10/2015

When the script is active, it would block others, unlike on Firefox.

Works fine.

FFW
§
Δημοσιεύτηκε: 13/10/2015

Seems like an issue with the original Tampermonkey. Beta version does it correctly but will still have the same issue by conflicting with other scripts and you won't be able to call some.

OwynΔημιουργός
§
Δημοσιεύτηκε: 13/10/2015

I have no idea what the issue is but if tampermonkey is responsible and they already did something to fix it in beta - you should tell their developers - very responsive guys.

FFW
§
Δημοσιεύτηκε: 13/10/2015

Removing the following condition in you script seems to bring everything to normal regarding this issue!

            if(!FireFox)
            {
                delete document.write;
                document.write('<html><head></head><body></body></html>');
                document.close();
            }
OwynΔημιουργός
§
Δημοσιεύτηκε: 13/10/2015

It's needed to avoid pop-ups and other ads popping out all of a sudden, by removing it you might encounter those on some image hostings

FFW
§
Δημοσιεύτηκε: 13/10/2015
Επεξεργάστηκε: 13/10/2015

So just to be sure.. It is only to avoid pop-ups and won't break anything else if removed, right?

OwynΔημιουργός
§
Δημοσιεύτηκε: 13/10/2015

It should not break anything else

FFW
§
Δημοσιεύτηκε: 13/10/2015

That should do.. Thank you!

Δημοσίευση απάντησης

Συνδεθείτε για να δημοσιεύσετε μια απάντηση.