您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
enlarges the fields in templates
// ==UserScript== // @name template fields // @namespace http://tampermonkey.net/ // @version 0.2.1 // @description enlarges the fields in templates // @author Ruben Van Hee @ Lightspeedhq // @run-at document-end // @match https://us.merchantos.com/?name=admin.listings.display_templates&form_name=listing&__sort_dir=ASC // ==/UserScript== (function() { function fieldEnlarge(){ var fields = document.querySelectorAll('.textarea.data_control'); for (i = 0, len = fields.length; i < len; i++) { fields[i].setAttribute("rows","50"); fields[i].setAttribute("cols","150"); } } fieldEnlarge(); document.addEventListener("page:load", function() { fieldEnlarge(); }, false); })();