您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Moves the GPS traces layer underneath the roads layer
// ==UserScript== // @name WME GPS Traces Under Roads // @namespace http://tampermonkey.net/ // @version 1.0.3 // @description Moves the GPS traces layer underneath the roads layer // @author Honkson // @license MIT // @match https://*.waze.com/editor* // @match https://*.waze.com/*/editor* // @exclude https://*.waze.com/user/editor* // @grant none // ==/UserScript== (function () { 'use strict'; function moveGPSLayer() { const gpsLayers = document.querySelectorAll('.olLayerDiv.olLayerGrid'); let gpsLayer = null; let roadsLayer = null; gpsLayers.forEach(layer => { if (!gpsLayer && layer.innerHTML.includes('clientLayer=gps_points')) { gpsLayer = layer; } if (!roadsLayer && layer.innerHTML.includes('roads')) { roadsLayer = layer; } }); if (gpsLayer && roadsLayer) { gpsLayer.style.zIndex = parseInt(getComputedStyle(roadsLayer).zIndex, 10) - 1; } } const observer = new MutationObserver(mutations => { for (let mutation of mutations) { for (let node of mutation.addedNodes) { if ( node.nodeType === 1 && node.tagName === 'IMG' && node.src.includes('clientLayer=gps_points') ) { setTimeout(moveGPSLayer, 500); return; } } } }); const waitForMap = setInterval(() => { const container = document.querySelector('.olMapViewport'); if (container) { clearInterval(waitForMap); observer.observe(container, { childList: true, subtree: true }); moveGPSLayer(); } }, 500); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址