help.vue 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. <template>
  2. <div>
  3. <h1 class="title-text pt-12">Troubleshooting</h1>
  4. <ol
  5. class="col-xs-12 col-sm-11 col-md-9 col-lg-7 q-mx-auto text-left"
  6. style="line-height: 3rem; color: #aaa"
  7. >
  8. <li>
  9. Make sure you have latest version of extension installed,
  10. <code style="color: #eee">
  11. <b>{{ version }}</b></code
  12. >
  13. right now
  14. </li>
  15. <li>
  16. Try removing extension and installing it again, then restarting the
  17. browser (all active windows, not just one tab).
  18. </li>
  19. <li>
  20. Make sure that this link opens:
  21. <a href="https://returnyoutubedislikeapi.com/votes?videoId=QOFEgexls14">
  22. https://returnyoutubedislikeapi.com/votes?videoId=QOFEgexls14
  23. </a>
  24. , you should see plain text: <br />
  25. <span style="color: #eee">
  26. {"id":"QOFEgexls14", "dateCreated":"2021-12-15T16:54:12.250813Z",
  27. "likes":2907, "dislikes":215, "rating":4.725641025641026,
  28. "viewCount":28222, "deleted":false}
  29. </span>
  30. </li>
  31. <li>
  32. If nothing of above helps - report your problem in
  33. <code>#bugs-and-problems</code> in our
  34. <v-btn
  35. class="mainAltButton"
  36. style="
  37. font-size: 0.5rem;
  38. height: 1.5rem;
  39. padding-left: 0.25rem !important;
  40. "
  41. :href="discordLink"
  42. target="_blank"
  43. >
  44. <v-icon size="1.25rem" style="margin-right: 0.5em"
  45. >mdi-discord</v-icon
  46. >
  47. Discord
  48. </v-btn>
  49. <ol type="a">
  50. <li>
  51. Tell us your <b>Operating System</b>, <b>Browser Name</b> and
  52. <b>Browser Version</b>.
  53. <span style="color: #f44"> Detected: </span>
  54. <v-btn
  55. class="mainAltButton"
  56. style="
  57. height: 1.5rem;
  58. font-size: 0.75rem;
  59. text-transform: none !important;
  60. padding-left: 0.5rem !important;
  61. padding-right: 0.25rem !important;
  62. "
  63. target="_blank"
  64. @click="copyToClipboard(platform)"
  65. >
  66. {{ platform }}
  67. <v-icon size="1rem" style="margin-left: 0.5em"
  68. >mdi-content-copy</v-icon
  69. >
  70. </v-btn>
  71. </li>
  72. <li style="position: relative; width: 100%">
  73. Take screenshot of page with problem (i.e. youtube video page) with
  74. console open (press <code>F12</code>) - example screenshot below.
  75. <img
  76. width="100%"
  77. style="border-radius: 1rem; border: 2px solid #333"
  78. src="ui/troubleshooting.png"
  79. alt="example-screenshot"
  80. />
  81. </li>
  82. <li>
  83. Take screenshot of extensions page of your browser with extension
  84. installed. <br />
  85. To see extensions put this into adress bar:
  86. <br />
  87. <code>about:addons</code> for Firefox
  88. <br />
  89. <code>chrome://extensions</code> for Chrome, Edge, Brave, Opera,
  90. Vivaldi
  91. </li>
  92. </ol>
  93. </li>
  94. </ol>
  95. </div>
  96. </template>
  97. <script>
  98. export default {
  99. transition(to, from) {
  100. if (!from) return "swoop-in";
  101. let routes = ["index", "install", "docs", "help", "faq", "donate", "links"];
  102. if (routes.indexOf(to.name) < 0) return "swoop-out";
  103. if (routes.indexOf(from.name) < 0) return "swoop-in";
  104. return routes.indexOf(to.name) > routes.indexOf(from.name)
  105. ? "swoop-left"
  106. : "swoop-right";
  107. },
  108. data: () => ({
  109. version: "2.0.0.3",
  110. platform: "Unknown platform",
  111. discordLink: "https://discord.gg/mYnESY4Md5",
  112. }),
  113. mounted() {
  114. fetch(
  115. "https://raw.githubusercontent.com/Anarios/return-youtube-dislike/main/Extensions/combined/manifest-chrome.json"
  116. )
  117. .then((response) => response.json())
  118. .then((json) => {
  119. this.version = json.version;
  120. });
  121. // .catch(console.error);
  122. // This script sets OSName variable as follows:
  123. // "Windows" for all versions of Windows
  124. // "MacOS" for all versions of Macintosh OS
  125. // "Linux" for all versions of Linux
  126. // "UNIX" for all other UNIX flavors
  127. // "Unknown OS" indicates failure to detect the OS
  128. var OSName = "Unknown OS";
  129. if (navigator.appVersion.indexOf("Win") != -1) OSName = "Windows";
  130. if (navigator.appVersion.indexOf("Mac") != -1) OSName = "MacOS";
  131. if (navigator.appVersion.indexOf("X11") != -1) OSName = "UNIX";
  132. if (navigator.appVersion.indexOf("Linux") != -1) OSName = "Linux";
  133. // browser parcer
  134. navigator.sayswho = (function () {
  135. var ua = navigator.userAgent;
  136. var tem;
  137. var M =
  138. ua.match(
  139. /(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i
  140. ) || [];
  141. if (/trident/i.test(M[1])) {
  142. tem = /\brv[ :]+(\d+)/g.exec(ua) || [];
  143. return "IE " + (tem[1] || "");
  144. }
  145. if (M[1] === "Chrome") {
  146. tem = ua.match(/\b(OPR|Edge)\/(\d+)/);
  147. if (tem != null) return tem.slice(1).join(" ").replace("OPR", "Opera");
  148. }
  149. M = M[2] ? [M[1], M[2]] : [navigator.appName, navigator.appVersion, "-?"];
  150. if ((tem = ua.match(/version\/(\d+)/i)) != null) M.splice(1, 1, tem[1]);
  151. return M.join(" ");
  152. })();
  153. this.platform = OSName + ", " + navigator.sayswho;
  154. },
  155. methods: {
  156. copyToClipboard(text) {
  157. navigator.clipboard.writeText(text);
  158. },
  159. },
  160. };
  161. </script>