Random Button for Derpibooru

Gives a hotkey for loading a random image on Derpibooru (Ctrl-M)

질문, 리뷰하거나, 이 스크립트를 신고하세요.
// ==UserScript==
// @name         Random Button for Derpibooru
// @namespace    http://fillydelphiaradio.net/
// @version      0.1
// @description  Gives a hotkey for loading a random image on Derpibooru (Ctrl-M)
// @author       Set-L
// @match        https://derpibooru.org/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    document.onkeyup = function(e) {
        if(e.ctrlKey && e.which == 77) {
            window.location.replace('https://derpibooru.org/search?q=%2A&random_image=y');
        }
    }
    // Your code here...
})();