ShadeRoot ExtraTorrent

Eye-friendly magic in your browser for ExtraTorrent

  1. //
  2. // Written by Glenn Wiking
  3. // Script Version: 1.2.0
  4. // Date of issue: 09/11/16
  5. // Date of resolution: 09/11/16
  6. //
  7. // ==UserScript==
  8. // @name ShadeRoot ExtraTorrent
  9. // @namespace SREXT
  10. // @description Eye-friendly magic in your browser for ExtraTorrent
  11. // @include http://*extratorrent.*
  12. // @include https://*extratorrent.*
  13. // @include http://*etmirror.*
  14. // @include https://*etmirror.*
  15. // @include http://*etproxy.*
  16. // @include https://*etproxy.*
  17. // @include http://*extratorrentonline.*
  18. // @include https://*extratorrentonline.*
  19. // @include http://*extratorrentlive.*
  20. // @include https://*extratorrentlive.*
  21. // @version 0.1.0a
  22. // @icon http://i.imgur.com/lHjDStP.png
  23.  
  24. // ==/UserScript==
  25.  
  26. function ShadeRootEXT(css) {
  27. var head, style;
  28. head = document.getElementsByTagName('head')[0];
  29. if (!head) { return; }
  30. style = document.createElement('style');
  31. style.type = 'text/css';
  32. style.innerHTML = css;
  33. head.appendChild(style);
  34. }
  35.  
  36. ShadeRootEXT (
  37. 'body {background-color: #202021 !important; color: #A9B2B7 !important;}'
  38. + // INPUT COLOR
  39. 'textarea, input {background-color: #164963 !important; border: 1px solid #386889 !important; color: #B9C2C7 !important;}'
  40. +
  41. '.error {color: #008FDD !important;}'
  42. + // LINK COLOR 1
  43. 'a, .link:hover, .top_cat, .top_more a {color: #277CB3 !important;}'
  44. +
  45. '.top_title b, tablemenu td a, .tablemenu td:hover a:hover, .right a, .top_more a, .td_menu a {color: #C1D4E0 !important;}'
  46. +
  47. '.blog_top, .td_menu, .menul, .menur, .top_cat {background: #2A4E7E !important;}'
  48. +
  49. '.blog_left, .blog_right {visibility: hidden !important;}'
  50. +
  51. 'td.ms, .usr span {color: #B3D1E1 !important;}'
  52. +
  53. 'img[src="//images4et.com/images/logo.gif"], img[src="//images4et.com/images/button_send.gif"], img[src="//images4et.com/images/button_upload_torrent.gif"], img[name="sbtn"], .h_search_btn, img, .btn, .hot_caption, input[name="btnsubmit"] {opacity: .8 !important;}'
  54. +
  55. 'table.tl th, .top_pic img, img[width="100"] {border: 1px solid #206796 !important;}'
  56. +
  57. 'table.tl th table td {background-color: #14222F !important;}'
  58. +
  59. 'tr.tlr {background-color: #182E3B !important;}'
  60. +
  61. 'tr.tlz {background-color: #14161D !important;}'
  62. +
  63. '.chat_msg, .fm td {background-color: #0F2330 !important; border: 1px solid #104D75 !important;}'
  64. +
  65. '.tztblsearch tbody tr td {background-color: rgb(11, 49, 69) !important; border: 1px solid rgb(15, 74, 114) !important;}'
  66. +
  67. 'hr {border-color: #1F78B9 !important;}'
  68. +
  69. '.tabledata1 {background-color: #0D384E !important; border: 1px solid #166293 !important;}'
  70. +
  71. '.tabledata0 {background-color: #192B38 !important; border: 1px solid #05426B !important;}'
  72. +
  73. 'img[src="//images4et.com/images/download_normal.gif"] {border-radius: 1em !important;}'
  74. +
  75. 'td.tabledata_num, .cat_subcats, .pager_link, div.usrm {background-color: #122433 !important; border: 1px solid #08638D !important;}'
  76. +
  77. 'div.bbl div.ddown, select {background-color: #1B3642 !important; border: 1px solid #317C99 !important; color: #8ACBE4 !important;}'
  78. +
  79. '.fm td.fmi {border-top: 1px solid #155987 !important; border-right: 1px solid #175F8F !important;}'
  80. +
  81. '.pager_no_link {color: #AAD6E7 !important; background-color: #155077 !important; border: 1px solid #227DC0 !important;}'
  82. +
  83. 'table.fm td div.top, table.fm td.top {background: #22445A !important; border-bottom: 1px solid #174F78 !important;}'
  84. +
  85. 'table.fm {border: 1px solid #0E3148 !important;}'
  86. +
  87. 'table.fm th {background: #115474 !important;}'
  88. +
  89. '.blog_content, .top_torr, .navigator, div.nav {border: 1px dashed #276D99 !important;}'
  90. +
  91. '.hot_item, .article_item {border-top: 1px dashed #276D99 !important; border-bottom: 1px dashed #276D99 !important;}'
  92. +
  93. '.tablemenu td {background-color: #194C71 !important;}'
  94. +
  95. 'td.stp, #hot_torrents {background: none !important;}'
  96. +
  97. '.highlight {background-color: #0C547B !important;}'
  98. +
  99. '.tablemenu td:hover {border: 1px solid #307DBF !important;}'
  100. +
  101. '.easy-autocomplete-container ul {background: #0B3953 !important; border-top: 1px dotted #296B90 !important;}'
  102. +
  103. '.easy-autocomplete.eac-blue-light ul li.selected, .easy-autocomplete.eac-blue-light ul .eac-category.selected, .easy-autocomplete-container ul li.selected {background-color: #0B2C45 !important;}'
  104. +
  105. '.borderdark {border: 1px dashed #226590 !important;}'
  106. );