WME Maximized (Basic)

Modifies the Waze Map Editor layout to provide a larger viewing area for editing.

当前为 2014-11-27 提交的版本,查看 最新版本

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

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

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name          WME Maximized (Basic)
// @version       0.1.4 (Beta)
// @namespace     http://greasyfork.org
// @description	  Modifies the Waze Map Editor layout to provide a larger viewing area for editing.
// @author        SeekingSerenity
// @homepage      https://greasyfork.org/en/scripts/6238-wme-maximized-basic
// @include       https://www.waze.com/editor/*
// @include       https://www.waze.com/*/editor/*
// @include       https://editor-beta.waze.com/*
// @run-at        document-start
// @grant         none
// ==/UserScript==


function addGlobalStyle(css) {
    var head, style;
    head = document.getElementsByTagName('head')[0];
    if (!head) { return; }
    style = document.createElement('style');
    style.type = 'text/css';
    style.innerHTML = css;
    head.appendChild(style);
}

addGlobalStyle('.chat-intro-tip { display: none !important; }');
addGlobalStyle('.waze-header { height: 24px !important; }');
addGlobalStyle('.waze-header-logo { background-size: 60px !important; margin: 4px 0px auto auto !important; background-position: top center !important; }');
addGlobalStyle('.waze-header-menu { line-height: 25px !important; font-size: 11px !important; }');
addGlobalStyle('#map-search { line-height: 60px !important; }');
addGlobalStyle('#toolbar.toolbar-button { width: 35px !important; height: 40px !important; }');
addGlobalStyle('.toolbar-sprite, .toolbar-add, .toolbar-delete, .toolbar-layers, .toolbar-redo, .toolbar-save, .toolbar-undo, #toolbar #layer-switcher-menu a span, #edit-buttons .toolbar-button.toolbar-group-drawing:after, #edit-buttons .toolbar-button.WazeControlUndoControl:after, #edit-buttons .toolbar-button.WazeControlRedoControl:after, #edit-buttons .toolbar-button.WazeControlSave:after, #edit-buttons .toolbar-button.WazeControlDeleteFeature:after, #map-lightbox .content .header .toolbar .toolbar-add, #map-lightbox .content .header .toolbar .toolbar-delete, #map-lightbox .content .header .toolbar .toolbar-layers, #map-lightbox .content .header .toolbar .toolbar-redo, #map-lightbox .content .header .toolbar .toolbar-save, #map-lightbox .content .header .toolbar .toolbar-undo { background-size: 25px 150px !important; }');
addGlobalStyle('#map-search, #toolbar { height: 40px !important; line-height: 40px !important; }');
addGlobalStyle('#map-search { max-width: 280px !important; }');
addGlobalStyle('#map-search .input-wrapper .input-addon-left { margin-top: 8px !important; }');
addGlobalStyle('#edit-buttons .toolbar-button:after { width: 25px !important; height: 25px !important; top: 9px !important; }');
addGlobalStyle('#edit-buttons .toolbar-button.WazeControlDeleteFeature:after { background-position: 0px -25px !important; }');
addGlobalStyle('#edit-buttons .toolbar-button.WazeControlRedoControl:after { background-position: 0px -75px !important; }');
addGlobalStyle('#edit-buttons .toolbar-button.WazeControlUndoControl:after { background-position: 0px -126px !important; }');
addGlobalStyle('#edit-buttons .toolbar-button.WazeControlSave:after { background-position: 0px -100px !important; }');
addGlobalStyle('#toolbar #layer-switcher-menu a span { width: 25px !important; height: 25px !important; background-position: 0px -52px !important; }');
addGlobalStyle('#toolbar .toolbar-button, #layer-switcher, #layer-switcher .dropdown a { width: 42px !important; height: 40px !important; }');
addGlobalStyle('#layer-switcher .dropdown-menu { top: 39px !important; line-height: 18px !important; }');
addGlobalStyle('#toolbar .toolbar-separator { height: 40px !important; }');
addGlobalStyle('#sidebar { max-width: 260px !important; }');
addGlobalStyle('.show-sidebar .row-fluid .fluid-fixed { margin-left:260px !important; }');
addGlobalStyle('#user-info h2 { display:none !important; }');
addGlobalStyle('#sidebar .message { font-size: 12px !important; line-height: 14px  !important; margin: 5px  !important; }');
addGlobalStyle('#sidebar .tab-content { padding: 3px 15px 10px 9px !important; }');
addGlobalStyle('.c1249150122 span { width: 224px !important; white-space: normal !important; }');
addGlobalStyle('.c2952996808 { height: 180px !important; font-size: 12px !important; }');
addGlobalStyle('.c2952996808 label.checkbox { height: 34px !important; }');
addGlobalStyle('.c2952996808 label.checkbox span { white-space: normal !important; overflow: visible !important; }');
addGlobalStyle('#sidebar #links { width: 260px !important; font-size: 10px !important; background-color: #e9e9e9 !important; border-right: #dfdfdf thin solid !important; }');
addGlobalStyle('.c1249150123 { width: 180px !important; }');
addGlobalStyle('.top-panel h1 { padding: 5px 0px !important; }');
addGlobalStyle('.top-panel.collapsed { transform: translateY(-118px) !important; }');
addGlobalStyle('.ur-comment-list .new-comment-form textarea { height: 120px !important; }');
addGlobalStyle('.ur-comment-list .new-comment-form { height: 180px !important; }');
addGlobalStyle('.top-panel .problem-description, .top-panel .problem-display-options  { height: 70px !important; }');
/*
addGlobalStyle('.room-name.single-room-label {font-size: 11px !important; padding-left: 8px !important; }');
addGlobalStyle('.dropdown .dropdown-toggle { padding-left: 5px !important; padding-right: 0px !important; }');
addGlobalStyle('.status { font-size: 11px !important; }');
addGlobalStyle('#ChatJumper-JUMP.ChatJumper, #ChatJumper-JUMP-clear { font-size: 11px !important; padding-left: 1px !important; padding-right: 1px !important; }');
 */
addGlobalStyle('.olControlAttribution { margin-left: 45px !important; }');
addGlobalStyle('#WMETB_NavBar.ui-draggable { height: 37px !important; line-height: 22px !important; color: #000 !important; background-color: #dfdfdf !important; border: #59899E 2px solid !important; }');

/* Add WME Place Update Fix
 */
addGlobalStyle('.place-update-edit .body {max-height:69vh !important; overflow-y:scroll !important;}');
addGlobalStyle('.panel.place-update-edit .image-preview, .panel.place-update-edit .missing-image {margin-top:5px !important;}');
addGlobalStyle('.panel .header {line-height:32px !important;}');
addGlobalStyle('.panel.place-update-edit .request-details, .panel.place-update-edit .changes, .panel.place-update-edit .navigation {padding:5px 15px 15px !important;}');
addGlobalStyle('.panel.place-update-edit .actions {padding: 5px 15px 5px !important;}');