help.vue 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. <template>
  2. <div style="width: 80vw" 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 browser (all
  14. 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", "likes":2907,
  29. "dislikes":215, "rating":4.725641025641026, "viewCount":28222, "deleted":false}
  30. </span>
  31. </li>
  32. <li>
  33. If nothing of above helps - report your problem in
  34. <code>#bugs-and-problems</code> in our
  35. <v-btn
  36. class="mainAltButton"
  37. style="
  38. font-size: 0.5rem;
  39. height: 1.5rem;
  40. color: #aaa;
  41. padding-left: 0.25rem !important;
  42. padding-right: 0.5rem !important;
  43. "
  44. :href="discordLink"
  45. target="_blank"
  46. >
  47. <v-icon size="1rem" style="margin-right: 0.5em">mdi-discord</v-icon>
  48. Discord
  49. </v-btn>
  50. <ol type="a">
  51. <li>
  52. Tell us your <b>Operating System</b>, <b>Browser Name</b> and
  53. <b>Browser Version</b>.
  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. <v-icon size=".75rem" color="primary" style="margin-right: 0.5em"
  67. >mdi-content-copy</v-icon
  68. >
  69. <span style="color: #f44"> Detected: </span>
  70. &nbsp;
  71. {{ platform }}
  72. </v-btn>
  73. </li>
  74. <li style="position: relative; width: 100%">
  75. Take screenshot of page with problem (i.e. youtube video page) with console
  76. open (press <code>F12</code>) - example screenshot below.
  77. <img
  78. width="100%"
  79. style="border-radius: 1rem; border: 2px solid #333"
  80. src="ui/troubleshooting.png"
  81. alt="example-screenshot"
  82. />
  83. </li>
  84. <li>
  85. Take screenshot of extensions page of your browser with extension installed.
  86. <br />
  87. To see extensions put this into adress bar:
  88. <br />
  89. <code>about:addons</code> for Firefox
  90. <br />
  91. <code>chrome://extensions</code> for Chrome, Edge, Brave, Opera, Vivaldi
  92. </li>
  93. </ol>
  94. </li>
  95. </ol>
  96. </div>
  97. </template>
  98. <script>
  99. export default {
  100. transition(to, from) {
  101. if (!from) return "swoop-in";
  102. let routes = ["index", "install", "docs", "help", "faq", "donate", "links"];
  103. if (routes.indexOf(to.name) < 0) return "swoop-out";
  104. if (routes.indexOf(from.name) < 0) return "swoop-in";
  105. return routes.indexOf(to.name) > routes.indexOf(from.name)
  106. ? "swoop-left"
  107. : "swoop-right";
  108. },
  109. data() {
  110. return {
  111. platform:
  112. this.$ua._parsed.os +
  113. " " +
  114. this.$ua._parsed.os_version +
  115. ", " +
  116. this.$ua._parsed.name +
  117. " " +
  118. this.$ua._parsed.version,
  119. version: "loading",
  120. discordLink: "https://discord.gg/mYnESY4Md5",
  121. };
  122. },
  123. mounted() {
  124. fetch(
  125. "https://raw.githubusercontent.com/Anarios/return-youtube-dislike/main/Extensions/combined/manifest-chrome.json"
  126. )
  127. .then((response) => response.json())
  128. .then((json) => {
  129. this.version = json.version;
  130. });
  131. // .catch(console.error);
  132. },
  133. methods: {
  134. copyToClipboard(text) {
  135. navigator.clipboard.writeText("```" + text + "```");
  136. },
  137. },
  138. };
  139. </script>