您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Add keyboard keys ESC and Enter. Auto click on icon edit and selected city name (for editors 5+).
当前为
// ==UserScript== // @name WME City Name Marker // @description Add keyboard keys ESC and Enter. Auto click on icon edit and selected city name (for editors 5+). // @namespace // @include https://*.waze.com/*editor/* // @grant none // @author Alexash // @version 0.3 // @namespace https://greasyfork.org/users/102642 // ==/UserScript== $('#sidebar').on('keyup', 'input.city-name', function(event) { if (event.keyCode == 13) { $('button.save-button').click(); } if (event.keyCode == 27) { $('button.cancel-button').click(); } }); $('#sidebar').on('focus', 'input.city-name', function() { $(this).select(); }); $('#WazeMap').on('mouseup', '.city-name-marker', function() { setTimeout(function() { $('.preview').attr('style','display: none;'); $('.attributes-form.inner-form').attr('style','display: block;'); $('input.city-name').select(); }, 500); });