Tate

Reduces the size of the original picture and open it in a new window

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

You will need to install an extension such as Tampermonkey to install this script.

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

// ==UserScript==
// @name           Tate
// @version        0.1
// @description  Reduces the size of the original picture and open it in a new window
// @author         Cristo
// @include        https://www.mturkcontent.com/dynamic/*
// @copyright     1012+, You
// @namespace https://greasyfork.org/users/1973
// ==/UserScript==

var page = document.getElementById('mturk_form');
var imagy = page.getElementsByTagName('img')[0];
imagy.style.height = '200px';
imagy.style.width = '200px';

var newWidth;
var newLeft;
if (window.screenX > (screen.width - (window.screenX + window.outerWidth))) {
    newWidth = window.screenX;						
    newLeft = "0";									
} else {											
    newWidth = screen.width - (window.screenX + window.outerWidth);		
    newLeft = window.screenX + window.outerWidth;
}
if (newWidth < screen.width/3) {
    window.open(imagy.src);
} else {
    var windowTo  = 'width=' + newWidth;
    windowTo += ', height=' + screen.height;
    windowTo += ', top=' + "0"; 
    windowTo += ', left=' + newLeft;
    window.open(imagy.src, "name", windowTo);  
}