MTurkGrind.com Plus

Style tweaks and keyboard shortcuts for MTurkGrind.com forum.

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

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

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name                MTurkGrind.com Plus
// @author              Chet Manley
// @version             0.2.1.1x
// @description         Style tweaks and keyboard shortcuts for MTurkGrind.com forum.
// @include             http://www.mturkgrind.com/*
// @include             http://mturkgrind.com/*
// @require		http://code.jquery.com/jquery-latest.min.js
// @grant       GM_log
// @namespace https://greasyfork.org/users/6438
// ==/UserScript==

// v0.2x, 2015-01-17: updates by clickhappier for MTG migration from vbulletin to xenforo

// v0.1, 2013-10-19		Style tweaks and keyboard shortcuts on MTurkGrind.com
//                      ---------------------------------------------------------------------------

$(document).ready(function () {
    $('.messageText').attr('style', 'font-size: 15px;');
//    $('a.quickreply').hide().next().hide();

    $(window).keyup(function (e) {
        if (!$('input, textarea').is(':focus')) {
            var key = (e.keyCode ? e.keyCode : e.which);
            switch (key) {
                case 37: // Left arrow - Previous page
                    if ($('div.PageNav > nav > a:contains("Prev")').first().attr('href')) {
                        window.location.href = $('div.PageNav > nav > a:contains("Prev")').first().attr('href');
                    }
                    break;
                case 39: // Right arrow - Next page
                    if ($('div.PageNav > nav > a:contains("Next")').first().attr('href')) {
                        window.location.href = $('div.PageNav > nav > a:contains("Next")').first().attr('href');
                    }
                    break;
                case 73: // I - Inbox
                    window.location.href = 'http://www.mturkgrind.com/conversations/';
                    break;
                case 82: // R - Start a reply
                    $('html, body').animate({ scrollTop: $("form#QuickReply").offset().top }, 100);
                    break;
                case 83: // S - Settings
                    window.location.href = 'http://www.mturkgrind.com/account/';
                    break;
                default:
                    break;
            }
        }
    });
});