ShadeRoot ThePornDude

Eye-friendly magic in your browser for ThePornDude

  1. //
  2. // Written by Glenn Wiking
  3. // Script Version: 0.1.1c
  4. // Date of issue: 03/09/17
  5. // Date of resolution: 03/09/17
  6. //
  7. // ==UserScript==
  8. // @name ShadeRoot ThePornDude
  9. // @namespace SRPD
  10. // @description Eye-friendly magic in your browser for ThePornDude
  11. // @include *theporndude.*
  12.  
  13. // @version 0.1.1c
  14. // @icon https://i.imgur.com/jjBTTTi.png
  15. // ==/UserScript==
  16.  
  17. function ShadeRootPD(css) {
  18. var head, style;
  19. head = document.getElementsByTagName('head')[0];
  20. if (!head) { return; }
  21. style = document.createElement('style');
  22. style.type = 'text/css';
  23. style.innerHTML = css;
  24. head.appendChild(style);
  25. }
  26.  
  27. ShadeRootPD (
  28. //BG COLOR 1
  29. 'body, .lang {background-color: #181110 !important; color: #edd1c8 !important;}'
  30. +
  31. //DIV COLOR 1
  32. '.top, .category-header, .no-results, .link-content, .breadcrumb-single {background: none repeat scroll 0px 0px #564642 !important;}'
  33. +
  34. //DIV COLOR 2
  35. 'results-nav, #results-pagination {background: #2b2320 !important;}'
  36. +
  37. //DIV COLOR 3
  38. '.link-header, .page-content {background: #442823 !important;}'
  39. +
  40. //TEXT COLOR 1
  41. '.category-header, .link-header, .link-details-review, .link-details-review p, li, .link-rating, .category-desc, .url_short_desc, .page-content {color: #f3e1d9 !important;}'
  42. +
  43. //TEXT COLOR 2
  44. 'a, footer div, .url_link_title a, .category-results a {color: #dbb8b1 !important;}'
  45. +
  46. //TEXT COLOR 3
  47. '.category-text-block, .date, .procons h3, .text {color: #cc5628 !important;}'
  48. +
  49. 'input, .results-header {background-color: #140f0e !important; border: 1px solid #894d3d !important; color: #f5dbd6 !important;}'
  50. +
  51. '.category-wrapper {background: #3b1c12 !important; color: #cc5628 !important;}'
  52. +
  53. 'img, .main-container, .ctm-icon {opacity: .85 !important;}'
  54. +
  55. '.url_link_container img {opacity: 1 !important; filter: brightness(.8) !important;}'
  56. +
  57. //BORDER ROUND 1
  58. '.category-container, .results-header {border: 1px solid #623125 !important;}'
  59. +
  60. 'footer {text-shadow: 1px 1px #5f362b !important;}'
  61. +
  62. '.results-nav .item {background: #8c3c23 !important;}'
  63. +
  64. '.results-nav .item:active {background: #502818 !important;}'
  65. +
  66. '.quote {color: #b96262 !important; opacity: .7 !important;}'
  67. +
  68. 'h3 {color: #cc5628 !important;}'
  69. +
  70. '.breadcrumb-category {background: #301b15 !important;}'
  71. +
  72. '.lang ul li {background: #573f39 !important;}'
  73. );