New Style

new style for new Waze

当前为 2017-10-25 提交的版本,查看 最新版本

// ==UserScript==
// @name         New Style
// @namespace    https://www.waze.com/*
// @version      1.4
// @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==

window.onload = function(){
    addStyle();
    setInterval(function(){
        var URL = window.location.href;
        if (URL.includes("editor")){
            var nav = document.getElementsByTagName("li");
            var div = document.getElementsByTagName("div");
            var sil = document.getElementsByTagName("select");
            var inp = document.getElementsByTagName("input");
            var tit = document.getElementsByClassName("menu-title");
            document.getElementsByClassName("flex-parent")[0].style.backgroundColor = "white";
            document.getElementById("app-head").style.backgroundColor = "#bedce5";
            if  (document.getElementsByClassName("primary-street")[1] != null){
               // document.getElementsByClassName("primary-street")[1].style.backgroundColor = "#bedce5";
            }
            for (i = 0; i < nav.length; i++){
                if (nav[i].className.includes("feed-item") || nav[i].className.includes("area result")){
                     nav[i].style.border = "2px solid #989494";
                     nav[i].style.borderRadius = "5px;";
                }  
            }
            for (i = 0; i < div.length; i++){
                if (div[i].className.includes("address-edit-input")){
                     div[i].style.border = "2px solid #989494";
                     div[i].style.borderRadius = "5px;";
                     div[i].style.cursor = "pointer";
                     div[i].title = "تعديل العنوان";
                }  
            }
            for (i = 0; i < sil.length; i++){
                if (sil[i].className.includes("form-control")){
                     sil[i].style.border = "2px solid #989494";
                     sil[i].style.borderRadius = "5px;";
                     sil[i].style.cursor = "pointer";
                }  
            }
            for (i = 0; i < inp.length; i++){
                if (inp[i].className.includes("form-control")){
                    inp[i].style.border = "2px solid #989494";
                    inp[i].style.borderRadius = "5px;";
                }  
                if (inp[i].type == "checkbox"){
                    //inp[i].style.transform = "scale(1.2)";
                    //inp[i].style.opacity = "1";
                }
            }
    
            for (i = 0; i < tit.length; i++){
                if (tit[i].innerText.includes("save") || tit[i].innerText.includes("حفظ")){
                    tit[i].style.color = "#09267b";
                }  
            }
        }
    },500);
}

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);
}

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址