[Script] Waze Live map big moods (no longer working)
Hi guys,
There is a script I found to be very useful for the Livemap:
https://greasyfork.org/en/scripts/10624 ... -big-moods
It allowed to see big report pins even at higher zooms instead of the smaller dots. However since the recent update this stopped working.
It was created and last modified in 2015, I had found it on Greasyfork directly. I don't think it already had a thread on this forum, probably since it's not a script for the WME so it's technically not really supposed to be in this section. I opened a feedback thread directly on Greasyfork on July 24th but it seems the author might be gone since it's been 3 years.
I tried to look at the code, only to realize I don't think I have any chance to understand it enough to fix it and I was wondering if anyone out there thinks they might have better luck..?
There is a script I found to be very useful for the Livemap:
https://greasyfork.org/en/scripts/10624 ... -big-moods
It allowed to see big report pins even at higher zooms instead of the smaller dots. However since the recent update this stopped working.
It was created and last modified in 2015, I had found it on Greasyfork directly. I don't think it already had a thread on this forum, probably since it's not a script for the WME so it's technically not really supposed to be in this section. I opened a feedback thread directly on Greasyfork on July 24th but it seems the author might be gone since it's been 3 years.
I tried to look at the code, only to realize I don't think I have any chance to understand it enough to fix it and I was wondering if anyone out there thinks they might have better luck..?
Code: Select all
// ==UserScript==
// @name Waze Live map big moods
// @version 0.4
// @description Waze live map big moods and events
// @author ixxvivxxi
// @include https://www.waze.com/livemap*
// @include https://www.waze.com/*/livemap*
// @grant none
// @namespace https://greasyfork.org/ru/scripts/10624-waze-live-map-big-moods-and-events
// ==/UserScript==
$( document ).ready(function() {
var css = '.xs-mood { width:30px !important; height: 24px !important; background-size:30px 24px !important; margin-top: -18px !important; margin-left: -14px !important;} ' +
'.small-pin { width: 28px !important; height: 33px !important;background-size: 28px 33px !important; margin-top: -30px !important; margin-left: -12px !important;}',
head = document.head || document.getElementsByTagName('head')[0],
style = document.createElement('style');
style.type = 'text/css';
if (style.styleSheet){
style.styleSheet.cssText = css;
} else {
style.appendChild(document.createTextNode(css));
}
head.appendChild(style);
$('.search-forms').append('<div class="checkbox"> <label> <input type="checkbox" id="showhide"> Спрятать/показать значки</label> </div>');
setInterval(function() {
if (W.controller._mapView.map._zoom > 7) {
$('.small-dot').addClass('small-pin');
$('.small-dot').removeClass('small-dot');
$('.medium-dot').addClass('small-pin');
$('.medium-dot').removeClass('medium-dot');
$('.big-dot').addClass('small-pin');
$('.big-dot').removeClass('big-dot');
}
}, 3000);
});
$('.search-forms').on('click', '#showhide', function() {
$('.leaflet-marker-pane').toggle();
});
Re: [Script] Waze Live map big moods (no longer working)