Sleazy Fork is available in English.

ORSM Gallery Keybindings

try to take over the world!

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

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.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==UserScript==
// @name         ORSM Gallery Keybindings
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  try to take over the world!
// @author       You
// @match        http*://www.orsm.net/i/gallery/*
// @require      https://code.jquery.com/jquery-3.3.1.min.js
// @grant        none
// ==/UserScript==

var next = 0;
var prev = 0;

(function() {
    'use strict';
    if (window.top != window.self) { //-- Don't run on frames or iframes.
        return;
    }
    document.onkeydown = checkKey;
    window.onload = function () {
        document.getElementById("bigimg").scrollIntoView({block: "end", inline: "center"});

        var links = document.links;
        for(var i=0; i<links.length; i++) {
            if(links[i].innerHTML.valueOf() == "Next &gt;&gt;&gt;") {
                next = links[i].href;
            } else if(links[i].innerHTML.valueOf() == "&lt;&lt;&lt; Prev") {
                prev = links[i].href;
            }
        }
        if (next.length > 0) {
            document.body.innerHTML += '<iframe style="display:none" src="' + next +'"></iframe>'
        }
        if (prev.length > 0) {
            document.body.innerHTML += '<iframe style="display:none" src="' + prev +'"></iframe>'
        }
    }
}
)();

function checkKey(e) {
    var links = document.links;
    for(var i=0; i<links.length; i++) {
        if(links[i].innerHTML.valueOf() == "Next &gt;&gt;&gt;") {
            next = links[i].href;
        } else if(links[i].innerHTML.valueOf() == "&lt;&lt;&lt; Prev") {
            prev = links[i].href;
        }
    }
    e = e || window.event;
    if (e.keyCode == '37') {
        if (prev.length > 0) {
            window.open(prev, "_self");
        }
    }
    else if (e.keyCode == '39') {
        if (next.length > 0) {
            window.open(next, "_self");
        }
    }

}