Greasy Fork is available in English.

WME Maximized (Basic)

Modifies the Waze Map Editor layout to provide a larger viewing area for editing, adds additional navigation links to menu, and prevents Place Update and UR panels from dropping below visible area.

  1. // ==UserScript==
  2. // @name WME Maximized (Basic)
  3. // @version 0.4.7 (Beta)
  4. // @namespace http://greatest.deepsurf.us
  5. // @description Modifies the Waze Map Editor layout to provide a larger viewing area for editing, adds additional navigation links to menu, and prevents Place Update and UR panels from dropping below visible area.
  6. // @author SeekingSerenity
  7. // @homepage https://greatest.deepsurf.us/en/scripts/6238-wme-maximized-basic
  8. // @include https://www.waze.com/*
  9. // @include https://wiki.waze.com/*
  10. // @include https://editor-beta.waze.com/*
  11. // @run-at document-start
  12. // @grant none
  13. // @thx SuperMedic for function begin() and integration support
  14. // ==/UserScript==
  15.  
  16. function begin() {
  17. if(typeof($)==='function'){
  18. addLinks();
  19. } else {
  20. console.info('no Jquery');
  21. window.setTimeout(begin,400);
  22. }
  23. }
  24.  
  25. function addGlobalStyle(css) {
  26. var head, style;
  27. head = document.getElementsByTagName('head')[0];
  28. if (!head) { return; }
  29. style = document.createElement('style');
  30. style.type = 'text/css';
  31. style.innerHTML = css;
  32. head.appendChild(style);
  33. }
  34. function addLinks() {
  35. $("ul.waze-header-menu").append('<li><a href="https://www.waze.com/editor">EDITOR</a></li>');
  36. $("ul.waze-header-menu").append('<li><a href="https://www.waze.com/forum" target="_blank">FORUM</a></li>');
  37. $("ul.waze-header-menu").append('<li><a href="https://www.waze.com/forum/ucp.php?i=pm&folder=inbox" target="_blank">INBOX</a></li>');
  38. $("ul.waze-header-menu").append('<li><a href="https://wiki.waze.com/wiki" target="_blank">WIKI</a></li>');
  39. }
  40.  
  41. addGlobalStyle('.chat-intro-tip { display: none !important; }');
  42. addGlobalStyle('.waze-header { height: 24px !important; line-height: 26px !important; }');
  43. addGlobalStyle('.waze-header-contents { margin-left: 0px !important; width: 100% !important; }');
  44. addGlobalStyle('.waze-header-logo { background-size: 60px !important; margin: 4px 0px auto auto !important; background-position: top center !important; }');
  45. addGlobalStyle('.waze-header-menu { line-height: 25px !important; font-size: 11px !important; }');
  46. addGlobalStyle('.waze-header-menu li a { padding: 0px 10px !important; }');
  47. addGlobalStyle('.waze-header .login-view { padding-right: 15px !important; }');
  48. addGlobalStyle('#login-status { margin-right: 5px !important; }');
  49. addGlobalStyle('#header-actions, .waze-header .login-view .login-button, .waze-header .navigation { right: 20px !important; }');
  50. addGlobalStyle('#map-search { line-height: 60px !important; }');
  51. addGlobalStyle('#edit-buttons { width: 292px !important; }');
  52. addGlobalStyle('#toolbar.toolbar-button { width: 25px !important; height: 25px !important; }');
  53. addGlobalStyle('.toolbar-sprite, .toolbar-addplace, .toolbar-addroad, .toolbar-layers, .toolbar-redo, .toolbar-save, .toolbar-trash, .toolbar-undo, #toolbar #layer-switcher-menu:after, #edit-buttons .toolbar-button.toolbar-group-drawing::after, #edit-buttons .toolbar-button.toolbar-group-venues::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-addplace, #map-lightbox .content .header .toolbar .toolbar-addroad, #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-trash, #map-lightbox .content .header .toolbar .toolbar-undo, #toolbar #layer-switcher-menu a span { background-size: 25px 175px !important; }');
  54. addGlobalStyle('#map-search, #toolbar { height: 40px !important; line-height: 40px !important; }');
  55. addGlobalStyle('#map-search { max-width: 280px !important; }');
  56. addGlobalStyle('#map-search .input-wrapper .input-addon-left { margin-top: 8px !important; }');
  57. addGlobalStyle('#toolbar .toolbar-button:after { width: 25px !important; height: 25px !important; top: 9px !important; }');
  58. addGlobalStyle('#edit-buttons .toolbar-button.toolbar-group-drawing:after { background-position: 0px -25px !important; }');
  59. addGlobalStyle('#edit-buttons .toolbar-button.WazeControlDeleteFeature:after { background-position: 0px -125px !important; }');
  60. addGlobalStyle('#edit-buttons .toolbar-button.WazeControlRedoControl:after { background-position: 0px -75px !important; }');
  61. addGlobalStyle('#edit-buttons .toolbar-button.WazeControlUndoControl:after { background-position: 0px -150px !important; }');
  62. addGlobalStyle('#edit-buttons .toolbar-button.WazeControlSave:after { background-position: 0px -100px !important; }');
  63. addGlobalStyle('#toolbar #layer-switcher-menu a span, #toolbar #layer-switcher-menu:after { width: 25px !important; height: 25px !important; background-position: 0px -50px !important; }');
  64. addGlobalStyle('#toolbar .toolbar-button, #layer-switcher, #layer-switcher .dropdown a { width: 42px !important; height: 40px !important; }');
  65. addGlobalStyle('#layer-switcher .dropdown-menu { top: 39px !important; line-height: 18px !important; }');
  66. addGlobalStyle('#toolbar .toolbar-separator { height: 40px !important; }');
  67. addGlobalStyle('#sidebar { max-width: 260px !important; }');
  68. addGlobalStyle('.show-sidebar .row-fluid .fluid-fixed { margin-left: 260px !important; }');
  69. addGlobalStyle('#user-info h2 { display:none !important; }');
  70. addGlobalStyle('#sidebar #user-details .rank span { margin: 0px !important; }');
  71. addGlobalStyle('#sidebar .message { font-size: 12px !important; line-height: 14px !important; margin: 5px !important; }');
  72. addGlobalStyle('.tips { display: none !important; }');
  73. addGlobalStyle('#sidebar .tab-content { margin-bottom: 35px !important; padding: 3px 3px 10px 0px !important; }');
  74. addGlobalStyle('#sidebar #sidepanel-prefs .tab-content { padding: 0px !important; }');
  75. addGlobalStyle('#sidebar #sidepanel-prefs .controls .btn-group { right: 20px !important; }');
  76. addGlobalStyle('table.add-alt-street-form { table-layout: fixed !important; }');
  77. addGlobalStyle('.alt-street-form-template > td:nth-child(2) { padding-bottom: 41px !important; }');
  78. addGlobalStyle('.alt-street-form-template > td:nth-child(3) { padding-bottom: 45px !important; }');
  79. addGlobalStyle('#edit-panel .address-form-actions { margin-top: 0px !important; }');
  80. addGlobalStyle('ul.typeahead .dropdown-menu { width: 100px !important; }');
  81. addGlobalStyle('.typeahead .dropdown-menu > li > a { padding: 3px !important; font-size: 11px !important; }');
  82. addGlobalStyle('.nav > li > a { padding: 4px !important; }');
  83. addGlobalStyle('#sidebar #links { width: 260px !important; font-size: 10px !important; background-color: #e9e9e9 !important; border-right: #dfdfdf thin solid !important; }');
  84.  
  85. /* Add Validator Styles
  86. */
  87. addGlobalStyle('.c1249150122 span { width: 224px !important; white-space: normal !important; }');
  88. addGlobalStyle('.c2952996808 { height: 180px !important; font-size: 12px !important; }');
  89. addGlobalStyle('.c2952996808 label.checkbox { height: 34px !important; }');
  90. addGlobalStyle('.c2952996808 label.checkbox span, #sidebar label { white-space: normal !important; overflow: visible !important; }');
  91. addGlobalStyle('button.btn:nth-child(5) { margin-right: 0px !important; }');
  92. addGlobalStyle('.side-panel-section:not(:last-child):after { margin: 5px 0px !important; }');
  93. addGlobalStyle('.c1249150123 { width: 180px !important; }');
  94.  
  95. /* Add ScriptKit and WME AutoUR Styles
  96. */
  97. addGlobalStyle('#sidepanel-scriptkit { margin-top: -5px !important; }');
  98. addGlobalStyle('#sidepanel-scriptkit-imagebar { width: 237px !important; }');
  99. addGlobalStyle('#sidepanel-scriptkit-imagebar button { width: 47px !important; height: 47px !important; }');
  100. addGlobalStyle('#WMEAutoUR_Settings_Select { font-size: 12px !important; width: 80% !important; }');
  101. addGlobalStyle('#WMEAutoUR_SET_TAB > div:nth-child(1) > button:nth-child(4) { font-size: 11px !important; width: 20% !important; float: right !important; }');
  102. addGlobalStyle('#WMEAutoUR_SET_TAB > div:nth-child(1) > button:nth-child(5) { font-size: 11px !important; width: 40% !important; }');
  103. addGlobalStyle('#WMEAutoUR_Settings_customName { width: 60% !important; }');
  104. addGlobalStyle('#WMEAutoUR_EDIT_TAB.tab-pane.active div button { font-size: 11px !important; width: 19.5% !important; }');
  105.  
  106. /* Chat Styles
  107. addGlobalStyle('.room-name.single-room-label {font-size: 11px !important; padding-left: 8px !important; }');
  108. addGlobalStyle('.dropdown .dropdown-toggle { padding-left: 5px !important; padding-right: 0px !important; }');
  109. addGlobalStyle('.status { font-size: 11px !important; }');
  110. addGlobalStyle('#ChatJumper-JUMP.ChatJumper, #ChatJumper-JUMP-clear { font-size: 11px !important; padding-left: 1px !important; padding-right: 1px !important; }');
  111. */
  112.  
  113. /* Add Toolbar Styles
  114. */
  115. addGlobalStyle('.olControlAttribution { margin-left: 45px !important; }');
  116. addGlobalStyle('#WMETB_NavBar.ui-draggable { z-index: 2000 !important; height: 37px !important; line-height: 22px !important; color: #000 !important; background-color: #dfdfdf !important; border: #59899E 2px solid !important; }');
  117. addGlobalStyle('.WazeControlLayerSwitcherIcon { width: 40px !important; height: 40px !important; background-size: 25px 25px !important; float: none !important; }');
  118.  
  119. /* Add Place Image Styles
  120. */
  121. addGlobalStyle('.modal-dialog {margin: 90px auto !important;}');
  122.  
  123. /* Add WME Place Update Fix
  124. */
  125. addGlobalStyle('.place-update-edit .body {height:69vh !important; overflow-y:scroll !important;}');
  126. addGlobalStyle('.panel.place-update-edit .image-preview, .panel.place-update-edit .missing-image {margin-top:5px !important;}');
  127. addGlobalStyle('.panel.place-update-edit .header {line-height:32px !important;}');
  128. addGlobalStyle('.panel.place-update-edit .request-details, .panel.place-update-edit .changes, .panel.place-update-edit .navigation {padding:5px 15px 15px !important;}');
  129. addGlobalStyle('.panel.place-update-edit .actions {padding: 5px 15px 5px !important;}');
  130.  
  131. /* Add WME UR Panel Fix
  132. */
  133. addGlobalStyle('#panel-container .panel { max-height:85vh !important; }');
  134. addGlobalStyle('#panel-container .panel .header { line-height: 18px !important; }');
  135. addGlobalStyle('.section .title { line-height: 26px !important; }');
  136. addGlobalStyle('.more-info > div:nth-child(3){ padding-top: 8px !important; padding-bottom: 8px !important; }');
  137. addGlobalStyle('#panel-container .panel .header .type { font-size: 16px !important; }');
  138. addGlobalStyle('.collapsible.content {padding: 5px 5px !important; }');
  139. addGlobalStyle('.problem-edit .conversation.section .comment-list { padding: 0px 0px !important;}');
  140. addGlobalStyle('.problem-edit .conversation.section .comment-list li.comment { padding: 0px 10px !important; }');
  141. addGlobalStyle('.problem-edit .conversation.section .comment .comment-content { padding: 0px 0px !important; }');
  142. addGlobalStyle('.problem-edit .conversation.section .new-comment-form { padding: 10px 0px 0px !important; }');
  143. addGlobalStyle('.actions.section .collapsible.content form.controls-container { width: 140px !important; float: left !important; padding-bottom: 10px !important; }');
  144. addGlobalStyle('.problem-edit .actions .done { width: 30% !important; float: right !important; }');
  145. addGlobalStyle('.problem-edit .actions .controls-container label { margin-bottom: 5px !important; }');
  146. addGlobalStyle(' {}');
  147. addGlobalStyle(' {}');
  148.  
  149. /* Add UR-MP Tracking Styles
  150. */
  151. addGlobalStyle('p#urt-main-title { margin-top: 0px !important; }');
  152. addGlobalStyle('section#sidepanel-urt { margin-left: -9px !important; }');
  153. addGlobalStyle('#urmpt-tab-content { overflow-x: scroll !important; }');
  154.  
  155. /* Add Location Info Styles
  156. */
  157. addGlobalStyle('.WazeControlLocationInfo { font-size: 14px !important; padding: 0px 10px !important; line-height: 30px !important; left: 50px !important; }');
  158.  
  159. /* Add Location Info Styles
  160. */
  161. addGlobalStyle('#RSconditions, #RSoperations, #RSselection { text-indent: 0px !important; }');
  162.  
  163. /* Add WME Aerial Shifter Styles
  164. */
  165. addGlobalStyle('#header-actions > div:nth-child(4) { right: 380px !important; }');
  166.  
  167.  
  168. begin();