您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Style tweaks and keyboard shortcuts for MTurkForum.com
当前为
- // ==UserScript==
- // @name MTurkGrind.com Plus
- // @author Chet Manley
- // @version 0.1
- // @description Style tweaks and keyboard shortcuts for MTurkForum.com
- // @include http://www.mturkgrind.com/*
- // @require http://code.jquery.com/jquery-latest.min.js
- // @namespace https://greasyfork.org/users/6438
- // ==/UserScript==
- // v0.1, 2013-10-19 Style tweaks and keyboard shortcuts on MTurkForum.com
- // ---------------------------------------------------------------------------
- $(document).ready(function () {
- $('.postrow > .content').attr('style', 'font-size: 14px;');
- $('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 ($('span.prev_next a[rel="prev"]').attr('href')) {
- window.location.href = $('span.prev_next a[rel="prev"]').attr('href');
- }
- break;
- case 39: // Right arrow - Next page
- if ($('span.prev_next a[rel="next"]').attr('href')) {
- window.location.href = $('span.prev_next a[rel="next"]').attr('href');
- }
- break;
- case 73: // I - Inbox
- window.location.href = 'http://www.mturkgrind.com/private.php';
- break;
- case 82: // R - Start a reply
- $('#cke_contents_vB_Editor_QR_editor > textarea').focus();
- break;
- case 83: // S - Settings
- window.location.href = 'http://www.mturkgrind.com/usercp.php';
- break;
- default:
- break;
- }
- }
- });
- });