help.vue 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. <template>
  2. <div class="width-constraint">
  3. <h1 class="title-text pt-12">Troubleshooting</h1>
  4. <ol style="line-height: 3rem; color: #aaa" class="text-left">
  5. <li>
  6. Make sure you have latest version of extension installed,
  7. <code style="color: #eee">
  8. <b>{{ version }}</b></code
  9. >
  10. right now
  11. </li>
  12. <li>
  13. Try removing extension and installing it again, then restarting the
  14. browser (all active windows, not just one tab).
  15. </li>
  16. <li>
  17. Make sure that this link opens:
  18. <a
  19. class="px-2 py-1"
  20. style="background: #222; border-radius: 0.25rem"
  21. href="https://returnyoutubedislikeapi.com/votes?videoId=QOFEgexls14"
  22. >
  23. https://returnyoutubedislikeapi.com/votes?videoId=QOFEgexls14
  24. </a>
  25. , <br />
  26. you should see plain text: <br />
  27. <span style="color: #eee">
  28. {"id":"QOFEgexls14", "dateCreated":"2021-12-15T16:54:12.250813Z",
  29. "likes":2907, "dislikes":215, "rating":4.725641025641026,
  30. "viewCount":28222, "deleted":false}
  31. </span>
  32. </li>
  33. <li>
  34. If nothing of above helps - report your problem in
  35. <code>#bugs-and-problems</code> in our
  36. <v-btn
  37. class="mainAltButton"
  38. style="
  39. font-size: 0.5rem;
  40. height: 1.5rem;
  41. color: #aaa;
  42. padding-left: 0.25rem !important;
  43. padding-right: 0.5rem !important;
  44. "
  45. :href="discordLink"
  46. target="_blank"
  47. >
  48. <v-icon size="1rem" style="margin-right: 0.5em">mdi-discord</v-icon>
  49. Discord
  50. </v-btn>
  51. <ol type="a">
  52. <li>
  53. Tell us your <b>Operating System</b>, <b>Browser Name</b> and
  54. <b>Browser Version</b>.
  55. <v-btn
  56. class="mainAltButton"
  57. style="
  58. height: 1.5rem;
  59. font-size: 0.75rem;
  60. text-transform: none !important;
  61. padding-left: 0.5rem !important;
  62. padding-right: 0.25rem !important;
  63. "
  64. target="_blank"
  65. @click="copyToClipboard(platform)"
  66. >
  67. <v-icon size=".75rem" color="primary" style="margin-right: 0.5em"
  68. >mdi-content-copy</v-icon
  69. >
  70. <span style="color: #f44"> Detected: </span>
  71. &nbsp;
  72. {{ platform }}
  73. </v-btn>
  74. </li>
  75. <li style="position: relative; width: 100%">
  76. Take screenshot of page with problem (i.e. youtube video page) with
  77. console open (press <code>F12</code>) - example screenshot below.
  78. <img
  79. loading="eager"
  80. width="100%"
  81. style="border-radius: 1rem; border: 2px solid #333"
  82. src="ui/troubleshooting.webp"
  83. alt="example-screenshot"
  84. />
  85. </li>
  86. <li>
  87. Take screenshot of extensions page of your browser with extension
  88. installed. <br />
  89. To see extensions put this into address bar:
  90. <br />
  91. <code>about:addons</code> for Firefox
  92. <br />
  93. <code>chrome://extensions</code> for Chrome, Edge, Brave, Opera,
  94. Vivaldi
  95. </li>
  96. </ol>
  97. </li>
  98. </ol>
  99. </div>
  100. </template>
  101. <script>
  102. export default {
  103. transition(to, from) {
  104. if (!from) return "swoop-in";
  105. let routes = ["index", "install", "docs", "help", "faq", "donate", "links"];
  106. if (routes.indexOf(to.name) < 0) return "swoop-out";
  107. if (routes.indexOf(from.name) < 0) return "swoop-in";
  108. return routes.indexOf(to.name) > routes.indexOf(from.name)
  109. ? "swoop-left"
  110. : "swoop-right";
  111. },
  112. data() {
  113. return {
  114. platform:
  115. this.$ua._parsed.os +
  116. " " +
  117. this.$ua._parsed.os_version +
  118. ", " +
  119. this.$ua._parsed.name +
  120. " " +
  121. this.$ua._parsed.version,
  122. version: "loading",
  123. discordLink: "https://discord.gg/mYnESY4Md5",
  124. };
  125. },
  126. mounted() {
  127. fetch(
  128. "https://raw.githubusercontent.com/Anarios/return-youtube-dislike/main/Extensions/combined/manifest-chrome.json"
  129. )
  130. .then((response) => response.json())
  131. .then((json) => {
  132. this.version = json.version;
  133. });
  134. // .catch(console.error);
  135. },
  136. methods: {
  137. copyToClipboard(text) {
  138. navigator.clipboard.writeText("```" + text + "```");
  139. },
  140. },
  141. };
  142. </script>