Tate

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

이 스크립트를 설치하려면 Tampermonkey, Greasemonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Userscripts와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 유저 스크립트 관리자 확장 프로그램이 필요합니다.

(이미 유저 스크립트 관리자가 설치되어 있습니다. 설치를 진행합니다!)

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

(이미 유저 스타일 관리자가 설치되어 있습니다. 설치를 진행합니다!)

// ==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);  
}