mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-10-28 07:40:27 +01:00
Link updated, version bump
This commit is contained in:
+17
-45
@@ -1,28 +1,13 @@
|
||||
<template>
|
||||
<div
|
||||
class="d-flex flex-column justify-between"
|
||||
style="height: calc(100vh - 10rem)"
|
||||
>
|
||||
<div class="d-flex flex-column justify-between" style="height: calc(100vh - 10rem)">
|
||||
<div class="col"></div>
|
||||
|
||||
<div class="col">
|
||||
<svg
|
||||
id="thumbslogo"
|
||||
class="mb-4"
|
||||
width="150"
|
||||
height="150"
|
||||
viewBox="0 0 24 24"
|
||||
overflow="visible"
|
||||
>
|
||||
<svg id="thumbslogo" class="mb-4" width="150" height="150" viewBox="0 0 24 24" overflow="visible">
|
||||
<path
|
||||
d="M14.9 3H6c-.9 0-1.6.5-1.9 1.2l-3 7c-.1.3-.1.5-.1.7v2c0 1.1.9 2 2 2h6.3l-.9 4.5c-.1.5 0 1 .4 1.4l1.1 1.1 6.5-6.6c.4-.4.6-.9.6-1.4V5c-.1-1.1-1-2-2.1-2zm7.4 12.8h-2.9c-.4 0-.7-.3-.7-.7V3.9c0-.4.3-.7.7-.7h2.9c.4 0 .7.3.7.7V15c0 .4-.3.8-.7.8z"
|
||||
/>
|
||||
<path
|
||||
id="plarrow"
|
||||
d="m8 12.5 5.1-2.9L8 6.7v5.8z"
|
||||
fill="#fff"
|
||||
stroke="none"
|
||||
/>
|
||||
<path id="plarrow" d="m8 12.5 5.1-2.9L8 6.7v5.8z" fill="#fff" stroke="none" />
|
||||
</svg>
|
||||
|
||||
<h1 class="title-text">
|
||||
@@ -32,11 +17,7 @@
|
||||
{{ $vuetify.lang.t("$vuetify.home.subtitle") }}
|
||||
</p>
|
||||
|
||||
<v-btn
|
||||
:to="installLink"
|
||||
color="primary px-6"
|
||||
style="font-size: 1.5em; padding: 1em; margin-bottom: 0.5em"
|
||||
>
|
||||
<v-btn :to="installLink" color="primary px-6" style="font-size: 1.5em; padding: 1em; margin-bottom: 0.5em">
|
||||
<v-icon large class="mr-6">mdi-tray-arrow-down</v-icon>
|
||||
{{ $vuetify.lang.t("$vuetify.install.name") }}
|
||||
</v-btn>
|
||||
@@ -76,13 +57,7 @@
|
||||
</h3>
|
||||
<v-row class="justify-center mx-auto">
|
||||
<p v-for="sponsor in sponsors" :key="sponsor.name" class="sponsor">
|
||||
<a
|
||||
:style="
|
||||
sponsor.link ? { cursor: 'pointer' } : { cursor: 'default' }
|
||||
"
|
||||
:href="sponsor.link"
|
||||
rel="sponsored"
|
||||
>
|
||||
<a :style="sponsor.link ? { cursor: 'pointer' } : { cursor: 'default' }" :href="sponsor.link" rel="sponsored">
|
||||
{{ sponsor.name }}
|
||||
</a>
|
||||
</p>
|
||||
@@ -98,9 +73,7 @@ export default {
|
||||
let routes = ["index", "install", "docs", "help", "faq", "donate", "links"];
|
||||
if (routes.indexOf(to.name) < 0) return "swoop-out";
|
||||
if (routes.indexOf(from.name) < 0) return "swoop-in";
|
||||
return routes.indexOf(to.name) > routes.indexOf(from.name)
|
||||
? "swoop-left"
|
||||
: "swoop-right";
|
||||
return routes.indexOf(to.name) > routes.indexOf(from.name) ? "swoop-left" : "swoop-right";
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
@@ -109,7 +82,11 @@ export default {
|
||||
discordLink: "https://discord.gg/mYnESY4Md5",
|
||||
sponsors: [
|
||||
{
|
||||
name: "Become our sponsor and be listed here",
|
||||
link: "https://seed4.me/?utm_source=returnyoutubedislike",
|
||||
name: "Check-out Seed4.Me VPN",
|
||||
},
|
||||
{
|
||||
name: "Become our sponsor",
|
||||
link: "https://www.patreon.com/join/returnyoutubedislike/checkout?rid=8008601",
|
||||
},
|
||||
],
|
||||
@@ -120,18 +97,13 @@ export default {
|
||||
/(?:http:|https:)*?\/\/(?:www\.|)(?:youtube\.com|m\.youtube\.com|youtu\.|youtube-nocookie\.com).*(?:v=|v%3D|v\/|(?:a|p)\/(?:a|u)\/\d.*\/|watch\?|vi(?:=|\/)|\/embed\/|oembed\?|be\/|e\/)([^&?%#/\n]*)/;
|
||||
let lastVideoId = "";
|
||||
window.oninput = (e) => {
|
||||
const videoId =
|
||||
(e.target.value.match(YOUTUBE_REGEX) || {})[1] || e.target.value;
|
||||
const videoId = (e.target.value.match(YOUTUBE_REGEX) || {})[1] || e.target.value;
|
||||
if (videoId !== lastVideoId && videoId.length === 11) {
|
||||
fetch(
|
||||
"https://returnyoutubedislikeapi.com/votes?videoId=" +
|
||||
(lastVideoId = videoId),
|
||||
)
|
||||
fetch("https://returnyoutubedislikeapi.com/votes?videoId=" + (lastVideoId = videoId))
|
||||
.then((resp) => resp.json())
|
||||
.then(
|
||||
(data) =>
|
||||
(document.getElementById("output").innerText =
|
||||
"Likes=" + data.likes + " Dislikes=" + data.dislikes),
|
||||
(document.getElementById("output").innerText = "Likes=" + data.likes + " Dislikes=" + data.dislikes)
|
||||
);
|
||||
}
|
||||
};
|
||||
@@ -162,9 +134,7 @@ input {
|
||||
stroke: #f44;
|
||||
transition-property: opacity, transform;
|
||||
transform: scale(0) rotate(180deg);
|
||||
animation:
|
||||
popin 1s 0.3s ease-in-out 1 forwards,
|
||||
tap 0.3s 1.7s ease-in-out 1 forwards;
|
||||
animation: popin 1s 0.3s ease-in-out 1 forwards, tap 0.3s 1.7s ease-in-out 1 forwards;
|
||||
}
|
||||
|
||||
#plarrow {
|
||||
@@ -232,11 +202,13 @@ input {
|
||||
transform: none;
|
||||
animation: none;
|
||||
}
|
||||
|
||||
#thumbsripple {
|
||||
opacity: 0;
|
||||
transform: none;
|
||||
animation: none;
|
||||
}
|
||||
|
||||
#plarrow {
|
||||
opacity: 0;
|
||||
transform: none;
|
||||
|
||||
@@ -64,6 +64,10 @@
|
||||
<p style="color: #999; margin-top: 0.5rem; margin-bottom: 0.5rem">
|
||||
{{ $vuetify.lang.t("$vuetify.install.subtitle3") }}
|
||||
</p>
|
||||
<v-btn class="mainAltButton" :href="reVanced" target="_blank">
|
||||
<v-icon style="margin-right: 0.5em">mdi-android</v-icon>
|
||||
Android - ReVanced
|
||||
</v-btn>
|
||||
<v-btn class="mainAltButton" :href="androidNewPipe" target="_blank">
|
||||
<v-icon style="margin-right: 0.5em">mdi-android</v-icon>
|
||||
Android <span style="font-size: 0.55rem">(Tubular - a Newpipe Fork)</span>
|
||||
@@ -76,10 +80,6 @@
|
||||
<v-icon style="margin-right: 0.5em">mdi-apple</v-icon>
|
||||
iOS <span style="font-size: 0.55rem">(uYou+)</span>
|
||||
</v-btn>
|
||||
<v-btn class="mainAltButton" :href="iosCercubePlus" target="_blank">
|
||||
<v-icon style="margin-right: 0.5em">mdi-apple</v-icon>
|
||||
iOS <span style="font-size: 0.55rem">(CercubePlus)</span>
|
||||
</v-btn>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -110,6 +110,7 @@ export default {
|
||||
iosuYouPlus: "https://github.com/qnblackcat/uYouPlus",
|
||||
|
||||
androidNewPipe: "https://github.com/polymorphicshade/Tubular",
|
||||
reVanced: "https://revanced.app/",
|
||||
|
||||
};
|
||||
},
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "return-youtube-dislike",
|
||||
"version": "3.0.0-17",
|
||||
"version": "3.0.0-18",
|
||||
"description": "Chrome extension to return youtube dislikes",
|
||||
"main": "ryd.content-script.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user