WME Hot Fix

Fixes minor bugs found in the WME.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name        WME Hot Fix
// @namespace   Waze-Map-Editor-addons-by-FZ69617
// @version     1.0.1
// @description Fixes minor bugs found in the WME.
// @include     https://www.waze.com/editor/*
// @include     https://www.waze.com/*/editor/*
// @include     https://editor-beta.waze.com/*
// @grant       none
// @copyright   2015 FZ69617
// ==/UserScript==


function wmehotfix_apply()
{
	// WME v1.6-415 fix for shift-click map selection problem
	// see: https://www.waze.com/forum/viewtopic.php?f=8&t=122463&start=230#p1002095
	//
	var style = document.createElement('style');
	style.id = 'wmehotfix-shift-click-problem';
	style.innerHTML = ''
	+	'#WazeMap { -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }\n'
	+	'#chat-overlay { -webkit-touch-callout: initial;  -webkit-user-select: initial; -khtml-user-select: initial; -moz-user-select: initial; -ms-user-select: initial; user-select: initial; }\n'
	;
	document.head.appendChild(style);

	console.log('WME Hot Fix applied.');
}

wmehotfix_apply();