Merge pull request #60 from Frontesque/main

Website 1.1.0 / 1.1.1
This commit is contained in:
Dmitrii Selivanov authored and GitHub committed 2021-11-27 19:19:11 +03:00
commit 149ed8d093
10 files changed
+159 -120

No files matched your search

@@ -84,7 +84,6 @@ function getState() {
if (isVideoDisliked()) { if (isVideoDisliked()) {
return "disliked"; return "disliked";
} }
return "neutral"; return "neutral";
} }
+10 -1
View File
@@ -13,7 +13,16 @@
<v-img src="/ui/abstract.svg" style="position: absolute; top: 0; right: 0; width: 100%; height: 100%;" /> <v-img src="/ui/abstract.svg" style="position: absolute; top: 0; right: 0; width: 100%; height: 100%;" />
<nuxt />
<section style="position: relative;">
<div class="center" style="width: 90vw">
<center style="width: 90vw">
<nuxt />
</center>
</div>
</section>
</v-main> </v-main>
+72
View File
@@ -0,0 +1,72 @@
<template>
<v-app id="inspire" dark>
<v-app-bar app color="lighten-2" flat>
<v-tabs centered class="ml-n9" color="primary" router>
<v-tab v-for="link in links" :key="link" :to="link.path">
{{ link.name }}
</v-tab>
</v-tabs>
</v-app-bar>
<v-main>
<v-img src="/ui/abstract.svg" style="position: absolute; top: 0; right: 0; width: 100%; height: 100%;" />
<nuxt />
</v-main>
</v-app>
</template>
<style>
html, body {
overflow: hidden;
}
section {
height: 90vh;
width: 100vw;
}
.mainAltButton {
margin: 0.25em;
}
.center {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
</style>
<script>
export default {
data: () => ({
links: [
{
name: 'Home',
path: '/'
},
{
name: 'Install',
path: '/install'
},
{
name: 'FAQ',
path: '/faq'
},
{
name: 'Donate',
path: '/donate'
},
{
name: 'Links',
path: '/links'
},
],
}),
}
</script>
+4 -4
View File
@@ -1,12 +1,12 @@
{ {
"name": "Return-Youtube-Dislike", "name": "return-youtube-dislike-site",
"version": "1.0.0", "version": "1.1.0",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "Return-Youtube-Dislike", "name": "return-youtube-dislike-site",
"version": "1.0.0", "version": "1.1.0",
"dependencies": { "dependencies": {
"core-js": "^3.15.1", "core-js": "^3.15.1",
"nuxt": "^2.15.7", "nuxt": "^2.15.7",
+2 -2
View File
@@ -1,6 +1,6 @@
{ {
"name": "Return-Youtube-Dislike", "name": "return-youtube-dislike-site",
"version": "1.0.0", "version": "1.1.0",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "nuxt", "dev": "nuxt",
+10 -23
View File
@@ -1,29 +1,16 @@
<template> <template>
<div> <div>
<section style="position: relative;"> <h1 style="font-size: 3em; margin-bottom: 0em;">Donate</h1>
<p style="color: #999; margin-bottom: 3em;">You can support our efforts to keep the internet free with a donation!</p>
<div class="center"> <v-btn class="mainAltButton" :href="patreonLink" target="_blank">
<center> <v-icon style="margin-right: 0.5em;">mdi-patreon</v-icon>
Patreon
<h1 style="font-size: 3em; margin-bottom: 0em;">Donate</h1> </v-btn>
<p style="color: #999; margin-bottom: 3em;">You can support our efforts to keep the internet free with a donation!</p> <v-btn class="mainAltButton" :to="yoomoneyLink">
<v-icon style="margin-right: 0.5em;">mdi-cash-multiple</v-icon>
<v-btn class="mainAltButton" :href="patreonLink" target="_blank"> Yoomoney
<v-icon style="margin-right: 0.5em;">mdi-patreon</v-icon> </v-btn>
Patreon
</v-btn>
<v-btn class="mainAltButton" :to="yoomoneyLink">
<v-icon style="margin-right: 0.5em;">mdi-cash-multiple</v-icon>
Yoomoney
</v-btn>
</center>
</div>
</section>
</div> </div>
</template> </template>
+18 -24
View File
@@ -1,27 +1,17 @@
<template> <template>
<div> <div>
<section style="position: relative;">
<h1 style="font-size: 3em; margin-bottom: 0em;">Frequently Asked Questions</h1>
<p style="color: #999; margin-bottom: 3em;">Still have questions? Feel free to join our Discord!</p>
<div class="center"> <v-expansion-panels focusable>
<center> <v-expansion-panel v-for="(item, i) in items" :key="i" style="width: 50vw; min-width: 300px;">
<v-expansion-panel-header v-text="item.question">Loading</v-expansion-panel-header>
<v-expansion-panel-content v-html="item.answer" style="text-align: left; padding: 0.5em;">Loading</v-expansion-panel-content>
</v-expansion-panel>
</v-expansion-panels>
<h1 style="font-size: 3em; margin-bottom: 0em;">Frequently Asked Questions</h1>
<p style="color: #999; margin-bottom: 3em;">Still have questions? Feel free to join our Discord!</p>
<v-expansion-panels focusable>
<v-expansion-panel v-for="(item, i) in items" :key="i" style="width: 50vw; min-width: 300px;">
<v-expansion-panel-header v-text="item.question">Loading</v-expansion-panel-header>
<v-expansion-panel-content v-html="item.answer" style="text-align: left; padding: 0.5em;">Loading</v-expansion-panel-content>
</v-expansion-panel>
</v-expansion-panels>
</center>
</div>
</section>
</div> </div>
</template> </template>
@@ -31,16 +21,20 @@
data: () => ({ data: () => ({
items: [ items: [
{ {
question: "Why is it not in chrome store yet?", question: "Where does extension get data?",
answer: "Chrome extension appoval process takes some time. As soon as it's available in the store - We'll update the site " answer: "Combination of GoogleAPI data and scraped data. We save all available data to our DB for it to be available after google shuts down dislike counts in their API."
}, },
{ {
question: "Is it dangerous?/Is it a virus?", question: "Video dislike count doesn't update",
answer: "While there is some trust involved in installing an extension from 3-rd party source - you can see all permissions requested by the extension before installing it. This extension only asks for access to youtube.com page " answer: "Right now video dislikes are cached, and arent updated very frequenly. Once in 2-3 days, not more often Yeah, it's not ideal, but it is what it is. Working on improving how often we can update them"
}, },
{ {
question: "I downvoted a video, and downvotes number didn't change", question: "How does this work?",
answer: "Currently we're using YouTube API to get dislikes count. It may take some time for data to be updated. YouTube might freeze dislike counts as well. We're working on a solution for this " answer: "The extension collects the video id of the video you are watching, fetches the dislike (and other fields like views, likes etc) using our API, if this is the first time the video was fetched by our API, it will use the YouTube API to get the data, then stores the data in a database for caching (cached for around 2-3 days) and archiving purposes and returns it to you. The extension then displays the dislikes to you."
},
{
question: "What will happen after the YouTube API stops returning the dislike count?",
answer: "The backend will switch to using a combination of archived dislike stats, estimates extrapolated from extension user data and estimates based on view/like ratios for videos whose dislikes weren't archived and for outdated dislike archives."
}, },
], ],
}), }),
+17 -29
View File
@@ -1,39 +1,27 @@
<template> <template>
<div> <div>
<section style="position: relative;"> <h1 style="font-size: 3em; margin-bottom:0;">Return Youtube Dislike</h1>
<div style="color: #999">
<p style="margin-top: 0">Browser extension and an API that show you dislikes on youtube</p>
</div>
<v-btn :to="installLink" color="primary lighten-1" style="font-size: 1.5em; padding: 1em; margin-bottom: 0.5em;">
<v-icon large style="margin-right: 0.5em;">mdi-tray-arrow-down</v-icon>
Install
</v-btn>
<div class="center"> <br>
<center>
<h1 style="font-size: 3em; margin-bottom:0;">Return Youtube Dislike</h1> <v-btn class="mainAltButton" :href="githubLink" target="_blank">
<div style="color: #999"> <v-icon style="margin-right: 0.5em;">mdi-github</v-icon>
<p style="margin-top: 0">Browser extension and an API that show you dislikes on youtube</p> Github
</div> </v-btn>
<v-btn :to="installLink" color="primary lighten-1" style="font-size: 1.5em; padding: 1em; margin-bottom: 0.5em;"> <v-btn class="mainAltButton" :href="discordLink" target="_blank">
<v-icon large style="margin-right: 0.5em;">mdi-tray-arrow-down</v-icon> <v-icon style="margin-right: 0.5em;">mdi-discord</v-icon>
Install Our Discord
</v-btn> </v-btn>
<br>
<v-btn class="mainAltButton" :href="githubLink" target="_blank">
<v-icon style="margin-right: 0.5em;">mdi-github</v-icon>
Github
</v-btn>
<v-btn class="mainAltButton" :href="discordLink" target="_blank">
<v-icon style="margin-right: 0.5em;">mdi-discord</v-icon>
Our Discord
</v-btn>
</center>
</div>
</section>
</div> </div>
</template> </template>
+25 -36
View File
@@ -1,48 +1,37 @@
<template> <template>
<div> <div>
<section style="position: relative;"> <h1 style="font-size: 3em; margin-bottom: 0;">Select Your Platform</h1>
<div style="color: #999">
<p style="margin-bottom: 0;"> This is an <b>ALPHA version!</b> It may be slow. It may be buggy.</p>
<p style="margin-bottom: 3em;">Only available for Chrome, Firefox and as a Userscript now, but coming to other platforms soon.</p>
</div>
<div class="center"> <v-btn class="mainAltButton" :href="chromeLink" target="_blank">
<center> <v-icon style="margin-right: 0.5em;">mdi-google-chrome</v-icon>
Chrome
</v-btn>
<h1 style="font-size: 3em; margin-bottom: 0;">Select Your Platform</h1> <v-btn class="mainAltButton" :href="firefoxLink" target="_blank">
<v-icon style="margin-right: 0.5em;">mdi-firefox</v-icon>
Firefox
</v-btn>
<div style="color: #999"> <v-btn class="mainAltButton" :href="scriptLink" target="_blank">
<p style="margin-bottom: 0;"> This is an <b>ALPHA version!</b> It may be slow. It may be buggy.</p> <v-icon style="margin-right: 0.5em;">mdi-script-text-outline</v-icon>
<p style="margin-bottom: 3em;">Only available for Chrome, Firefox and as a Userscript now, but coming to other platforms soon.</p> Userscript (Tampermonkey)
</div> </v-btn>
<v-btn class="mainAltButton" :href="chromeLink" target="_blank"> <h3 style="margin-top: 3em;">Third Party Implementations</h3>
<v-icon style="margin-right: 0.5em;">mdi-google-chrome</v-icon> <div style="color: #999">
Chrome <p style="margin-bottom: 0;">No liability on our side, use at your own risk</p>
</v-btn> </div>
<v-btn class="mainAltButton" :href="iosJailbreakLink" target="_blank">
<v-icon style="margin-right: 0.5em;">mdi-apple</v-icon>
iOS (Jailbroken)
</v-btn>
<v-btn class="mainAltButton" :href="firefoxLink" target="_blank">
<v-icon style="margin-right: 0.5em;">mdi-firefox</v-icon>
Firefox
</v-btn>
<v-btn class="mainAltButton" :href="scriptLink" target="_blank">
<v-icon style="margin-right: 0.5em;">mdi-script-text-outline</v-icon>
Userscript (Tampermonkey)
</v-btn>
<h3 style="margin-top: 3em;">Third Party Implementations</h3>
<div style="color: #999">
<p style="margin-bottom: 0;">No liability on our side, use at your own risk</p>
</div>
<v-btn class="mainAltButton" :href="iosJailbreakLink" target="_blank">
<v-icon style="margin-right: 0.5em;">mdi-apple</v-icon>
iOS (Jailbroken)
</v-btn>
</center>
</div>
</section>
</div> </div>
</template> </template>
+1
View File
@@ -53,6 +53,7 @@
<script> <script>
export default { export default {
layout: 'default_legacy',
data() { data() {
return { return {
githubLink: "https://github.com/Anarios/return-youtube-dislike", githubLink: "https://github.com/Anarios/return-youtube-dislike",