popup.html 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta content="text/html; charset=utf-8" />
  5. <title title="__MSG_extensionName__">__MSG_extensionName__</title>
  6. <link rel="stylesheet" href="popup.css" />
  7. <link rel="preconnect" href="https://fonts.googleapis.com" />
  8. <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
  9. <link
  10. href="https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap"
  11. rel="stylesheet"
  12. />
  13. </head>
  14. <body>
  15. <center>
  16. <svg width="48" viewBox="0 0 24 24">
  17. <path
  18. d="M14.9 3H6c-.9 0-1.6.5-1.9 1.2l-3 7c-.1.3-.1.5-.1.7v2c0 1.1.9 2 2 2h6.3l-.9 4.5c-.1.5 0 1 .4 1.4l1.1 1.1 6.5-6.6c.4-.4.6-.9.6-1.4V5c-.1-1.1-1-2-2.1-2zm7.4 12.8h-2.9c-.4 0-.7-.3-.7-.7V3.9c0-.4.3-.7.7-.7h2.9c.4 0 .7.3.7.7V15c0 .4-.3.8-.7.8z"
  19. fill="red"
  20. />
  21. <path d="m8 12.5 5.1-2.9L8 6.7v5.8z" fill="#fff" />
  22. </svg>
  23. <h1 style="margin-bottom: 0.75rem" title="__MSG_extensionName__">__MSG_extensionName__</h1>
  24. <p style="color: var(--lightGrey)" title="__MSG_textDeveloper__">__MSG_textDeveloper__</p>
  25. <button id="link_website" title="__MSG_linkWebsite__">__MSG_linkWebsite__</button>
  26. <button id="link_github" >GitHub</button>
  27. <button id="link_discord">Discord</button>
  28. <br />
  29. <button style="margin-top: 0.3rem" id="link_faq" title="__MSG_linkFAQ__">__MSG_linkFAQ__</button>
  30. <button style="margin-top: 0.3em" id="link_donate" title="__MSG_linkDonate__">__MSG_linkDonate__</button>
  31. <button style="margin-top: 0.3em" id="link_help" title="__MSG_linkHelp__">__MSG_linkHelp__</button>
  32. <br />
  33. <br />
  34. <p style="display: none">API Status: <b id="status"></b></p>
  35. <img
  36. id="server-status"
  37. style="display: none; width: 0.75rem; height: 0.75rem"
  38. src="./icons/server.svg"
  39. alt=""
  40. />
  41. <br />
  42. <br />
  43. </center>
  44. <!-- top-right -->
  45. <button id="advancedToggle">
  46. <svg
  47. xmlns="http://www.w3.org/2000/svg"
  48. enable-background="new 0 0 24 24"
  49. height="24px"
  50. viewBox="0 0 24 24"
  51. width="24px"
  52. fill="currentColor"
  53. >
  54. <rect fill="none" height="24" width="24" />
  55. <path
  56. d="M19.5,12c0-0.23-0.01-0.45-0.03-0.68l1.86-1.41c0.4-0.3,0.51-0.86,0.26-1.3l-1.87-3.23c-0.25-0.44-0.79-0.62-1.25-0.42 l-2.15,0.91c-0.37-0.26-0.76-0.49-1.17-0.68l-0.29-2.31C14.8,2.38,14.37,2,13.87,2h-3.73C9.63,2,9.2,2.38,9.14,2.88L8.85,5.19 c-0.41,0.19-0.8,0.42-1.17,0.68L5.53,4.96c-0.46-0.2-1-0.02-1.25,0.42L2.41,8.62c-0.25,0.44-0.14,0.99,0.26,1.3l1.86,1.41 C4.51,11.55,4.5,11.77,4.5,12s0.01,0.45,0.03,0.68l-1.86,1.41c-0.4,0.3-0.51,0.86-0.26,1.3l1.87,3.23c0.25,0.44,0.79,0.62,1.25,0.42 l2.15-0.91c0.37,0.26,0.76,0.49,1.17,0.68l0.29,2.31C9.2,21.62,9.63,22,10.13,22h3.73c0.5,0,0.93-0.38,0.99-0.88l0.29-2.31 c0.41-0.19,0.8-0.42,1.17-0.68l2.15,0.91c0.46,0.2,1,0.02,1.25-0.42l1.87-3.23c0.25-0.44,0.14-0.99-0.26-1.3l-1.86-1.41 C19.49,12.45,19.5,12.23,19.5,12z M12.04,15.5c-1.93,0-3.5-1.57-3.5-3.5s1.57-3.5,3.5-3.5s3.5,1.57,3.5,3.5S13.97,15.5,12.04,15.5z"
  57. />
  58. </svg>
  59. </button>
  60. <!-- bottom-right -->
  61. <div id="ext">
  62. <a href="https://returnyoutubedislike.com/install" target="_blank" id="ext-update"></a>
  63. <span id="ext-version"></span>
  64. </div>
  65. <!-- dialog box -->
  66. <fieldset id="advancedSettings">
  67. <legend id="advancedLegend" title="__MSG_legendSettings__">__MSG_legendSettings__</legend>
  68. <label class="switch" data-hover="__MSG_textSettingsHover__">
  69. <input type="checkbox" id="disable_vote_submission" />
  70. <span class="slider" />
  71. <span class="switchLabel" title="__MSG_textSettings__">__MSG_textSettings__</span>
  72. </label>
  73. <br />
  74. <label class="switch" data-hover="Use custom colors in new pages.">
  75. <input type="checkbox" id="colored_bar" />
  76. </label>
  77. <label class="switch">
  78. <input type="checkbox" id="number_round_down" />
  79. <span class="slider" />
  80. <span class="switchLabel">Show rounded down numbers</span>
  81. </label>
  82. <br />
  83. <div class="custom-select">
  84. <label for="number_format">Number format:</label>
  85. <select name="number_format" id="number_format">
  86. <option value="compactShort" id="number_format_compactShort"></option>
  87. <option value="compactLong" id="number_format_compactLong"></option>
  88. <option value="standard" id="number_format_standard"></option>
  89. </select>
  90. </div>
  91. <!-- <br />
  92. <label class="switch">
  93. <input type="checkbox" id="color_ratio" />
  94. <span class="slider" />
  95. <span class="switchLabel">Colorize ratio bar</span>
  96. </label>
  97. <br />
  98. <label class="switch" data-hover="Use custom colors in new pages.">
  99. <input type="checkbox" id="colored_thumbs" />
  100. <span class="slider" />
  101. <span class="switchLabel">Colorize thumbs</span>
  102. </label>
  103. <br />
  104. <div class="custom-select">
  105. <label for="color_theme">Color theme:</label>
  106. <select name="color_theme" id="color_theme">
  107. <option value="classic" id="color_theme_classic">Classic</option>
  108. <option value="accessible" id="color_theme_accessible">Accessible</option>
  109. <option value="neon" id="color_theme_neon">Neon</option>
  110. </select>
  111. <span id="color_theme_example_like" style="display: inline-block; vertical-align: text-top; width: 1em; height: 1em;">&nbsp;</span>
  112. <span id="color_theme_example_dislike" style="display: inline-block; vertical-align: text-top; width: 1em; height: 1em;">&nbsp;</span>
  113. </div>
  114. <!-- <br />
  115. <label class="switch">
  116. <input type="checkbox" id="star_ratio" />
  117. <span class="slider" />
  118. <span class="switchLabel">5-star Rating Bar</span>
  119. </label>
  120. <br /> -->
  121. <!-- <label class="switch">
  122. <input type="checkbox" id="disable_api_unlisted" />
  123. <span class="slider" />
  124. <span class="switchLabel">Lorem ipsum dolor sit amet</span> </label
  125. ><br /> -->
  126. </fieldset>
  127. </body>
  128. <script src="popup.js"></script>
  129. </html>