Webtekno Dark Theme

Dark Theme For Webtekno.com

  1. // ==UserScript==
  2. // @name Webtekno Dark Theme
  3. // @name:tr Webtekno Karanlık Tema
  4. // @namespace https://gitlab.com/mburakg/WebteknoDarkTheme
  5. // @version 0.204
  6. // @description Dark Theme For Webtekno.com
  7. // @description:tr Webtekno.com için Karanlık Tema
  8. // @author @mbrkg
  9. // @match https://www.webtekno.*
  10. // @icon https://www.google.com/s2/favicons?sz=64&domain=webtekno.com
  11. // @grant GM_addStyle
  12. // @run-at document-start
  13. // @include https://www.webtekno.*
  14. // @license MIT
  15. // ==/UserScript==
  16.  
  17. (function() {
  18. let css = "";
  19. if(false || document.location.href.indexOf("https://www.webtekno") == 0){
  20. css += `
  21. .content-timeline__time, .wt-container,.headline,.content-card__detail,.sidebar-social__item__caption{
  22. background: black!important;
  23. }
  24. .content-timeline--underline, .underline, .content-title>h1,.content-body--right,.sidebar-social__item__count,.content-comments__sub-title span,.content-comments__item__author__name,.content-comments__item__message{
  25. color: #bec9d3!important;
  26. }
  27. #wt-masthead{
  28. display:none;
  29. }
  30. .sidebar-social__item{
  31. border-right: 3px solid black!important;
  32. }
  33. .content-body > .content-body--right > .content-body__detail > div{
  34. background:#334!important;
  35. }
  36. .bottom-new-video{
  37. background:transparent!important;
  38. }
  39. `;
  40. }
  41. if (typeof GM_addStyle !== "undefined") {
  42. GM_addStyle(css);
  43. }
  44. else {
  45. let styleNode = document.createElement("style");
  46. styleNode.appendChild(document.createTextNode(css));
  47. (document.querySelector("head") || document.documentElement).appendChild(styleNode);
  48. }
  49. })();