New Style

new style for new Waze

  1. // ==UserScript==
  2. // @name New Style
  3. // @namespace https://www.waze.com/*
  4. // @version 1.5
  5. // @description new style for new Waze
  6. // @author sultan alrefaei
  7. // @match https://www.waze.com/editor/
  8. // @match https://www.waze.com/ar/editor/
  9. // @match https://www.waze.com/editor
  10. // @match https://www.waze.com/ar/editor
  11. // @match https://www.waze.com/editor/*
  12. // @match https://www.waze.com/ar/editor/*
  13. // @match https://www.waze.com/editor/*
  14. // @match https://www.waze.com/*
  15. // @grant none
  16. // @copyright 2017 sultan alrefaei
  17. // ==/UserScript==
  18. addStyle();
  19. window.onload = function(){
  20. setInterval(function(){
  21. var URL = window.location.href;
  22. if (URL.includes("editor")){
  23. var tit = document.getElementsByClassName("menu-title");
  24. for (i = 0; i < tit.length; i++){
  25. if (tit[i].innerText.includes("save") || tit[i].innerText.includes("حفظ")){
  26. tit[i].style.color = "#09267b";
  27. }
  28. }
  29. }
  30. if (document.getElementById("fasenas") != null){
  31. document.getElementById("fasenas").onmouseover = function(){
  32. sil[i].style.border = "2px solid #989494";
  33. sil[i].style.borderRadius = "5px;";
  34. sil[i].style.cursor = "pointer";
  35. }
  36. }
  37. },50);
  38. }
  39.  
  40. function addStyle(){
  41. var style = document.createElement("link");
  42. style.href = "https://www.dropbox.com/s/gaii1r6m5602uqs/mynewstyle.css?raw=1";
  43. style.rel = "stylesheet";
  44. document.getElementsByTagName("head")[0].appendChild(style);
  45. }