New Style

new style for new Waze

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name         New Style
// @namespace    https://www.waze.com/*
// @version      1.5
// @description  new style for new Waze
// @author       sultan alrefaei
// @match        https://www.waze.com/editor/
// @match        https://www.waze.com/ar/editor/
// @match        https://www.waze.com/editor
// @match        https://www.waze.com/ar/editor
// @match        https://www.waze.com/editor/*
// @match        https://www.waze.com/ar/editor/*
// @match        https://www.waze.com/editor/*
// @match        https://www.waze.com/*
// @grant        none
// @copyright    2017 sultan alrefaei
// ==/UserScript==
addStyle();
window.onload = function(){
    setInterval(function(){
        var URL = window.location.href;
        if (URL.includes("editor")){
            var tit = document.getElementsByClassName("menu-title");
            for (i = 0; i < tit.length; i++){
                if (tit[i].innerText.includes("save") || tit[i].innerText.includes("حفظ")){
                    tit[i].style.color = "#09267b";
                }  
            }
        }
        if (document.getElementById("fasenas") != null){
            document.getElementById("fasenas").onmouseover = function(){
                sil[i].style.border = "2px solid #989494";
                sil[i].style.borderRadius = "5px;";
                sil[i].style.cursor = "pointer";
            }
        }
    },50);
    
}

function addStyle(){
    var style = document.createElement("link");
    style.href = "https://www.dropbox.com/s/gaii1r6m5602uqs/mynewstyle.css?raw=1";
    style.rel = "stylesheet";
    document.getElementsByTagName("head")[0].appendChild(style);
}