help.vue 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. <template>
  2. <div class="col-xs-12 col-sm-11 col-md-9 col-lg-7 mx-auto">
  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. width="100%"
  80. style="border-radius: 1rem; border: 2px solid #333"
  81. src="ui/troubleshooting.png"
  82. alt="example-screenshot"
  83. />
  84. </li>
  85. <li>
  86. Take screenshot of extensions page of your browser with extension
  87. installed. <br />
  88. To see extensions put this into address bar:
  89. <br />
  90. <code>about:addons</code> for Firefox
  91. <br />
  92. <code>chrome://extensions</code> for Chrome, Edge, Brave, Opera,
  93. Vivaldi
  94. </li>
  95. </ol>
  96. </li>
  97. </ol>
  98. </div>
  99. </template>
  100. <script>
  101. export default {
  102. transition(to, from) {
  103. if (!from) return "swoop-in";
  104. let routes = ["index", "install", "docs", "help", "faq", "donate", "links"];
  105. if (routes.indexOf(to.name) < 0) return "swoop-out";
  106. if (routes.indexOf(from.name) < 0) return "swoop-in";
  107. return routes.indexOf(to.name) > routes.indexOf(from.name)
  108. ? "swoop-left"
  109. : "swoop-right";
  110. },
  111. data() {
  112. return {
  113. platform:
  114. this.$ua._parsed.os +
  115. " " +
  116. this.$ua._parsed.os_version +
  117. ", " +
  118. this.$ua._parsed.name +
  119. " " +
  120. this.$ua._parsed.version,
  121. version: "loading",
  122. discordLink: "https://discord.gg/mYnESY4Md5",
  123. };
  124. },
  125. mounted() {
  126. fetch(
  127. "https://raw.githubusercontent.com/Anarios/return-youtube-dislike/main/Extensions/combined/manifest-chrome.json"
  128. )
  129. .then((response) => response.json())
  130. .then((json) => {
  131. this.version = json.version;
  132. });
  133. // .catch(console.error);
  134. },
  135. methods: {
  136. copyToClipboard(text) {
  137. navigator.clipboard.writeText("```" + text + "```");
  138. },
  139. },
  140. };
  141. </script>