new style for new Waze
当前为
// ==UserScript==
// @name New Style
// @namespace https://www.waze.com/*
// @version 1.1
// @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
// @grant none
// @copyright 2017 sultan alrefaei
// ==/UserScript==
window.onload = function(){
setInterval(function(){
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;";
}
}
for (i = 0; i < tit.length; i++){
if (tit[i].innerText.includes("save") || tit[i].innerText.includes("حفظ")){
tit[i].style.color = "#09267b";
}
}
},500);
}