您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Make the post box larger
// ==UserScript== // @author ZSMTurker // @name ZSMTurker's Larger MTG Post Area // @namespace https://greasyfork.org/users/2291 // @description Make the post box larger // @require http://code.jquery.com/jquery-latest.min.js // @match http://www.mturkgrind.com/* // @match https://www.mturkgrind.com/* // @version 0.1 // ==/UserScript== var smilieDiv, sizeInput, quickReplyDiv, currentPT2, currentPT1, currentPage, heightVar = 300; currentPT2 = ( window.location.href ).split( '/' ); currentPT1 = currentPT2[ 3 ].slice( 0, 3 ); currentPage = currentPT1[ 0 ]; $( document ).load( function() { setTimeout( function() { changeHeight( heightVar ); }, 3000 ); $( '#sizeId' ).change( function() { heightVar = sizeInput.value; changeHeight( heightVar ); } ); } ); if ( currentPT1 == 'thr' ) { quickReplyDiv = document.getElementById( 'quickreply_title' ); sizeInput = document.createElement( 'INPUT' ); sizeInput.value = heightVar; sizeInput.size = 5; sizeInput.id = 'sizeId'; quickReplyDiv.appendChild( sizeInput ); } else if ( currentPT1 == 'edi' ) { smilieDiv = document.getElementsByClassName( 'blockhead' )[ 0 ]; sizeInput = document.createElement( 'INPUT' ); sizeInput.value = heightVar; sizeInput.size = 5; sizeInput.id = 'sizeId'; smilieDiv.appendChild( sizeInput ); } function changeHeight() { $( '.cke_contents' ).css( 'height', heightVar + 'px' ); }