Link updated, version bump

This commit is contained in:
Anarios committed 2025-01-12 15:11:19 +01:00
1 parent 30213b9ecf
commit 35b6ec0909
3 files changed
+23 -50

No files matched your search

+17 -45
View File
@@ -1,28 +1,13 @@
<template> <template>
<div <div class="d-flex flex-column justify-between" style="height: calc(100vh - 10rem)">
class="d-flex flex-column justify-between"
style="height: calc(100vh - 10rem)"
>
<div class="col"></div> <div class="col"></div>
<div class="col"> <div class="col">
<svg <svg id="thumbslogo" class="mb-4" width="150" height="150" viewBox="0 0 24 24" overflow="visible">
id="thumbslogo"
class="mb-4"
width="150"
height="150"
viewBox="0 0 24 24"
overflow="visible"
>
<path <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" 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 <path id="plarrow" d="m8 12.5 5.1-2.9L8 6.7v5.8z" fill="#fff" stroke="none" />
id="plarrow"
d="m8 12.5 5.1-2.9L8 6.7v5.8z"
fill="#fff"
stroke="none"
/>
</svg> </svg>
<h1 class="title-text"> <h1 class="title-text">
@@ -32,11 +17,7 @@
{{ $vuetify.lang.t("$vuetify.home.subtitle") }} {{ $vuetify.lang.t("$vuetify.home.subtitle") }}
</p> </p>
<v-btn <v-btn :to="installLink" color="primary px-6" style="font-size: 1.5em; padding: 1em; margin-bottom: 0.5em">
: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> <v-icon large class="mr-6">mdi-tray-arrow-down</v-icon>
{{ $vuetify.lang.t("$vuetify.install.name") }} {{ $vuetify.lang.t("$vuetify.install.name") }}
</v-btn> </v-btn>
@@ -76,13 +57,7 @@
</h3> </h3>
<v-row class="justify-center mx-auto"> <v-row class="justify-center mx-auto">
<p v-for="sponsor in sponsors" :key="sponsor.name" class="sponsor"> <p v-for="sponsor in sponsors" :key="sponsor.name" class="sponsor">
<a <a :style="sponsor.link ? { cursor: 'pointer' } : { cursor: 'default' }" :href="sponsor.link" rel="sponsored">
:style="
sponsor.link ? { cursor: 'pointer' } : { cursor: 'default' }
"
:href="sponsor.link"
rel="sponsored"
>
{{ sponsor.name }} {{ sponsor.name }}
</a> </a>
</p> </p>
@@ -98,9 +73,7 @@ export default {
let routes = ["index", "install", "docs", "help", "faq", "donate", "links"]; let routes = ["index", "install", "docs", "help", "faq", "donate", "links"];
if (routes.indexOf(to.name) < 0) return "swoop-out"; if (routes.indexOf(to.name) < 0) return "swoop-out";
if (routes.indexOf(from.name) < 0) return "swoop-in"; if (routes.indexOf(from.name) < 0) return "swoop-in";
return routes.indexOf(to.name) > routes.indexOf(from.name) return routes.indexOf(to.name) > routes.indexOf(from.name) ? "swoop-left" : "swoop-right";
? "swoop-left"
: "swoop-right";
}, },
data() { data() {
return { return {
@@ -109,7 +82,11 @@ export default {
discordLink: "https://discord.gg/mYnESY4Md5", discordLink: "https://discord.gg/mYnESY4Md5",
sponsors: [ 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", 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]*)/; /(?: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 = ""; let lastVideoId = "";
window.oninput = (e) => { window.oninput = (e) => {
const videoId = const videoId = (e.target.value.match(YOUTUBE_REGEX) || {})[1] || e.target.value;
(e.target.value.match(YOUTUBE_REGEX) || {})[1] || e.target.value;
if (videoId !== lastVideoId && videoId.length === 11) { if (videoId !== lastVideoId && videoId.length === 11) {
fetch( fetch("https://returnyoutubedislikeapi.com/votes?videoId=" + (lastVideoId = videoId))
"https://returnyoutubedislikeapi.com/votes?videoId=" +
(lastVideoId = videoId),
)
.then((resp) => resp.json()) .then((resp) => resp.json())
.then( .then(
(data) => (data) =>
(document.getElementById("output").innerText = (document.getElementById("output").innerText = "Likes=" + data.likes + " Dislikes=" + data.dislikes)
"Likes=" + data.likes + " Dislikes=" + data.dislikes),
); );
} }
}; };
@@ -162,9 +134,7 @@ input {
stroke: #f44; stroke: #f44;
transition-property: opacity, transform; transition-property: opacity, transform;
transform: scale(0) rotate(180deg); transform: scale(0) rotate(180deg);
animation: animation: popin 1s 0.3s ease-in-out 1 forwards, tap 0.3s 1.7s ease-in-out 1 forwards;
popin 1s 0.3s ease-in-out 1 forwards,
tap 0.3s 1.7s ease-in-out 1 forwards;
} }
#plarrow { #plarrow {
@@ -232,11 +202,13 @@ input {
transform: none; transform: none;
animation: none; animation: none;
} }
#thumbsripple { #thumbsripple {
opacity: 0; opacity: 0;
transform: none; transform: none;
animation: none; animation: none;
} }
#plarrow { #plarrow {
opacity: 0; opacity: 0;
transform: none; transform: none;
+5 -4
View File
@@ -64,6 +64,10 @@
<p style="color: #999; margin-top: 0.5rem; margin-bottom: 0.5rem"> <p style="color: #999; margin-top: 0.5rem; margin-bottom: 0.5rem">
{{ $vuetify.lang.t("$vuetify.install.subtitle3") }} {{ $vuetify.lang.t("$vuetify.install.subtitle3") }}
</p> </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-btn class="mainAltButton" :href="androidNewPipe" target="_blank">
<v-icon style="margin-right: 0.5em">mdi-android</v-icon> <v-icon style="margin-right: 0.5em">mdi-android</v-icon>
Android &nbsp; <span style="font-size: 0.55rem">(Tubular - a Newpipe Fork)</span> Android &nbsp; <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> <v-icon style="margin-right: 0.5em">mdi-apple</v-icon>
iOS &nbsp; <span style="font-size: 0.55rem">(uYou+)</span> iOS &nbsp; <span style="font-size: 0.55rem">(uYou+)</span>
</v-btn> </v-btn>
<v-btn class="mainAltButton" :href="iosCercubePlus" target="_blank">
<v-icon style="margin-right: 0.5em">mdi-apple</v-icon>
iOS &nbsp; <span style="font-size: 0.55rem">(CercubePlus)</span>
</v-btn>
</div> </div>
</template> </template>
@@ -110,6 +110,7 @@ export default {
iosuYouPlus: "https://github.com/qnblackcat/uYouPlus", iosuYouPlus: "https://github.com/qnblackcat/uYouPlus",
androidNewPipe: "https://github.com/polymorphicshade/Tubular", androidNewPipe: "https://github.com/polymorphicshade/Tubular",
reVanced: "https://revanced.app/",
}; };
}, },
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "return-youtube-dislike", "name": "return-youtube-dislike",
"version": "3.0.0-17", "version": "3.0.0-18",
"description": "Chrome extension to return youtube dislikes", "description": "Chrome extension to return youtube dislikes",
"main": "ryd.content-script.js", "main": "ryd.content-script.js",
"scripts": { "scripts": {