2020-11-17 05:15:35 +00:00
|
|
|
<template>
|
2021-07-20 14:45:17 +00:00
|
|
|
<div class="uk-flex uk-flex-between uk-flex-middle">
|
2021-08-22 10:27:09 +00:00
|
|
|
<button class="uk-button uk-button-text" @click="$router.go(-1) || $router.push('/')">
|
2021-08-25 19:55:30 +00:00
|
|
|
<font-awesome-icon icon="chevron-left" /> {{ $t("actions.back") }}
|
2021-08-22 10:27:09 +00:00
|
|
|
</button>
|
2021-08-25 16:30:21 +00:00
|
|
|
<span><h1 class="uk-text-bold uk-text-center" v-t="'titles.preferences'"/></span>
|
2021-07-20 14:45:17 +00:00
|
|
|
<span />
|
|
|
|
</div>
|
2020-11-22 04:34:27 +00:00
|
|
|
<hr />
|
2021-02-25 14:40:40 +00:00
|
|
|
<h2>SponsorBlock</h2>
|
2021-08-25 19:55:30 +00:00
|
|
|
<p>{{ $t("actions.uses_api_from") }}<a href="https://sponsor.ajay.app/">sponsor.ajay.app</a></p>
|
|
|
|
<b v-t="'actions.enable_sponsorblock'" />
|
2021-02-25 14:40:40 +00:00
|
|
|
<br />
|
2021-04-07 11:45:40 +00:00
|
|
|
<input class="uk-checkbox" v-model="sponsorBlock" @change="onChange($event)" type="checkbox" />
|
2021-02-25 15:18:59 +00:00
|
|
|
<br />
|
2021-08-25 19:55:30 +00:00
|
|
|
<b v-t="'actions.skip_sponsors'" />
|
2021-02-25 15:18:59 +00:00
|
|
|
<br />
|
2021-04-07 11:45:40 +00:00
|
|
|
<input class="uk-checkbox" v-model="skipSponsor" @change="onChange($event)" type="checkbox" />
|
2021-02-25 15:18:59 +00:00
|
|
|
<br />
|
2021-08-25 19:55:30 +00:00
|
|
|
<b v-t="'actions.skip_intro'" />
|
2021-02-25 15:18:59 +00:00
|
|
|
<br />
|
2021-04-07 11:45:40 +00:00
|
|
|
<input class="uk-checkbox" v-model="skipIntro" @change="onChange($event)" type="checkbox" />
|
2021-02-25 15:18:59 +00:00
|
|
|
<br />
|
2021-08-25 19:55:30 +00:00
|
|
|
<b v-t="'actions.skip_outro'" />
|
2021-02-25 15:18:59 +00:00
|
|
|
<br />
|
2021-04-07 11:45:40 +00:00
|
|
|
<input class="uk-checkbox" v-model="skipOutro" @change="onChange($event)" type="checkbox" />
|
2021-02-25 15:18:59 +00:00
|
|
|
<br />
|
2021-08-25 19:55:30 +00:00
|
|
|
<b v-t="'actions.skip_preview'" />
|
2021-07-18 19:53:17 +00:00
|
|
|
<br />
|
|
|
|
<input class="uk-checkbox" v-model="skipPreview" @change="onChange($event)" type="checkbox" />
|
|
|
|
<br />
|
2021-08-25 19:55:30 +00:00
|
|
|
<b v-t="'actions.skip_interaction'" />
|
2021-02-25 15:18:59 +00:00
|
|
|
<br />
|
2021-04-07 11:45:40 +00:00
|
|
|
<input class="uk-checkbox" v-model="skipInteraction" @change="onChange($event)" type="checkbox" />
|
2021-02-25 15:18:59 +00:00
|
|
|
<br />
|
2021-08-25 19:55:30 +00:00
|
|
|
<b v-t="'actions.skip_self_promo'" />
|
2021-02-25 15:18:59 +00:00
|
|
|
<br />
|
2021-04-07 11:45:40 +00:00
|
|
|
<input class="uk-checkbox" v-model="skipSelfPromo" @change="onChange($event)" type="checkbox" />
|
2021-02-25 15:18:59 +00:00
|
|
|
<br />
|
2021-08-25 19:55:30 +00:00
|
|
|
<b v-t="'actions.skip_non_music'" />
|
2021-02-25 15:18:59 +00:00
|
|
|
<br />
|
2021-04-07 11:45:40 +00:00
|
|
|
<input class="uk-checkbox" v-model="skipMusicOffTopic" @change="onChange($event)" type="checkbox" />
|
2021-05-06 17:30:02 +00:00
|
|
|
<br />
|
2021-08-25 19:55:30 +00:00
|
|
|
<b v-t="'actions.theme'" />
|
2021-06-28 19:45:03 +00:00
|
|
|
<br />
|
|
|
|
<select class="uk-select uk-width-auto" v-model="selectedTheme" @change="onChange($event)">
|
2021-08-25 19:55:30 +00:00
|
|
|
<option value="auto" v-t="'actions.auto'" />
|
|
|
|
<option value="dark" v-t="'actions.dark'" />
|
|
|
|
<option value="light" v-t="'actions.light'" />
|
2021-06-28 19:45:03 +00:00
|
|
|
</select>
|
|
|
|
<br />
|
2021-08-25 19:55:30 +00:00
|
|
|
<b v-t="'actions.autoplay_video'" />
|
2021-05-06 17:30:02 +00:00
|
|
|
<br />
|
|
|
|
<input class="uk-checkbox" v-model="autoPlayVideo" @change="onChange($event)" type="checkbox" />
|
2021-06-07 20:35:45 +00:00
|
|
|
<br />
|
2021-08-25 19:55:30 +00:00
|
|
|
<b v-t="'actions.audio_only'" />
|
2021-06-07 20:35:45 +00:00
|
|
|
<br />
|
2021-07-03 19:24:09 +00:00
|
|
|
<input class="uk-checkbox" v-model="listen" @change="onChange($event)" type="checkbox" />
|
2021-06-21 20:03:11 +00:00
|
|
|
<br />
|
2021-08-25 19:55:30 +00:00
|
|
|
<b v-t="'actions.default_quality'" />
|
2021-06-21 20:03:11 +00:00
|
|
|
<br />
|
2021-06-22 10:57:12 +00:00
|
|
|
<select class="uk-select uk-width-auto" v-model="defaultQuality" @change="onChange($event)">
|
2021-08-25 19:55:30 +00:00
|
|
|
<option value="0" v-t="'actions.auto'" />
|
2021-06-21 20:25:38 +00:00
|
|
|
<option :key="resolution" v-for="resolution in resolutions" :value="resolution">{{ resolution }}p</option>
|
2021-06-21 20:03:11 +00:00
|
|
|
</select>
|
2021-06-22 10:54:20 +00:00
|
|
|
<br />
|
2021-08-25 19:55:30 +00:00
|
|
|
<b v-t="'actions.buffering_goal'" />
|
2021-06-22 10:54:20 +00:00
|
|
|
<br />
|
2021-06-22 10:57:12 +00:00
|
|
|
<input class="uk-input uk-width-auto" v-model="bufferingGoal" @change="onChange($event)" type="text" />
|
2021-07-05 13:18:54 +00:00
|
|
|
<br />
|
2021-08-25 19:55:30 +00:00
|
|
|
<b v-t="'actions.country_selection'" />
|
2021-07-05 13:18:54 +00:00
|
|
|
<br />
|
|
|
|
<select class="uk-select uk-width-auto" v-model="country" @change="onChange($event)">
|
|
|
|
<option :key="country.code" v-for="country in countryMap" :value="country.code">{{ country.name }}</option>
|
|
|
|
</select>
|
2021-07-18 20:20:35 +00:00
|
|
|
<br />
|
2021-08-25 19:55:30 +00:00
|
|
|
<b v-t="'actions.default_homepage'" />
|
2021-07-18 20:20:35 +00:00
|
|
|
<br />
|
|
|
|
<select class="uk-select uk-width-auto" v-model="defaultHomepage" @change="onChange($event)">
|
2021-08-25 19:55:30 +00:00
|
|
|
<option value="trending" v-t="'titles.trending'" />
|
|
|
|
<option value="feed" v-t="'titles.feed'" />
|
2021-07-18 20:20:35 +00:00
|
|
|
</select>
|
2021-07-18 20:27:34 +00:00
|
|
|
<br />
|
2021-08-25 19:55:30 +00:00
|
|
|
<b v-t="'actions.show_comments'" />
|
2021-07-18 20:27:34 +00:00
|
|
|
<br />
|
|
|
|
<input class="uk-checkbox" v-model="showComments" @change="onChange($event)" type="checkbox" />
|
2021-07-30 09:03:16 +00:00
|
|
|
<br />
|
2021-08-25 19:55:30 +00:00
|
|
|
<b v-t="'actions.minimize_description'" />
|
2021-07-30 09:03:16 +00:00
|
|
|
<br />
|
|
|
|
<input class="uk-checkbox" v-model="minimizeDescription" @change="onChange($event)" type="checkbox" />
|
2021-08-22 10:27:09 +00:00
|
|
|
<br />
|
2021-08-25 19:55:30 +00:00
|
|
|
<b v-t="'actions.store_watch_history'" />
|
2021-08-22 10:27:09 +00:00
|
|
|
<br />
|
|
|
|
<input class="uk-checkbox" v-model="watchHistory" @change="onChange($event)" type="checkbox" />
|
2021-08-25 16:30:21 +00:00
|
|
|
<br />
|
2021-08-25 19:55:30 +00:00
|
|
|
<b v-t="'actions.language_selection'" />
|
2021-08-25 16:30:21 +00:00
|
|
|
<br />
|
|
|
|
<select class="uk-select uk-width-auto" v-model="selectedLanguage" @change="onChange($event)">
|
|
|
|
<option :key="language.code" v-for="language in languages" :value="language.code">{{ language.name }}</option>
|
|
|
|
</select>
|
2021-08-27 07:33:55 +00:00
|
|
|
<br />
|
|
|
|
<b v-t="'actions.enabled_codecs'" />
|
|
|
|
<br />
|
|
|
|
<select class="uk-select uk-width-auto" v-model="enabledCodecs" @change="onChange($event)" multiple>
|
|
|
|
<option value="av1">AV1</option>
|
|
|
|
<option value="vp9">VP9</option>
|
|
|
|
<option value="avc">AVC (h.264)</option>
|
|
|
|
</select>
|
2021-08-25 19:55:30 +00:00
|
|
|
<h2 v-t="'actions.instances_list'" />
|
2020-11-17 05:15:35 +00:00
|
|
|
<table class="uk-table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Instance Name</th>
|
|
|
|
<th>Instance Locations</th>
|
|
|
|
<th>Has CDN?</th>
|
2020-11-30 06:39:40 +00:00
|
|
|
<th>SSL Score</th>
|
2020-11-17 05:15:35 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody v-bind:key="instance.name" v-for="instance in instances">
|
|
|
|
<tr>
|
|
|
|
<td>{{ instance.name }}</td>
|
|
|
|
<td>{{ instance.locations }}</td>
|
|
|
|
<td>{{ instance.cdn }}</td>
|
2020-11-30 06:39:40 +00:00
|
|
|
<td>
|
2021-04-07 11:45:40 +00:00
|
|
|
<a :href="sslScore(instance.apiurl)" target="_blank">Click Here</a>
|
2020-11-30 06:39:40 +00:00
|
|
|
</td>
|
2020-11-17 05:15:35 +00:00
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
2020-11-22 04:34:27 +00:00
|
|
|
<hr />
|
|
|
|
|
|
|
|
<b>Instance Selection:</b>
|
2021-06-22 10:57:12 +00:00
|
|
|
<br />
|
|
|
|
<select class="uk-select uk-width-auto" v-model="selectedInstance" @change="onChange($event)">
|
2021-04-07 11:45:40 +00:00
|
|
|
<option v-bind:key="instance.name" v-for="instance in instances" v-bind:value="instance.apiurl">
|
2020-11-17 05:15:35 +00:00
|
|
|
{{ instance.name }}
|
|
|
|
</option>
|
|
|
|
</select>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2021-07-05 13:18:54 +00:00
|
|
|
import CountryMap from "@/utils/CountryMap.js";
|
2020-11-17 05:15:35 +00:00
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
selectedInstance: null,
|
2021-02-25 14:40:40 +00:00
|
|
|
instances: [],
|
2021-02-25 15:18:59 +00:00
|
|
|
sponsorBlock: true,
|
|
|
|
skipSponsor: true,
|
|
|
|
skipIntro: false,
|
|
|
|
skipOutro: false,
|
2021-07-18 19:53:17 +00:00
|
|
|
skipPreview: false,
|
2021-02-25 15:18:59 +00:00
|
|
|
skipInteraction: true,
|
|
|
|
skipSelfPromo: true,
|
2021-04-07 11:45:40 +00:00
|
|
|
skipMusicOffTopic: true,
|
2021-06-28 19:45:03 +00:00
|
|
|
selectedTheme: "dark",
|
2021-05-06 17:30:02 +00:00
|
|
|
autoPlayVideo: true,
|
2021-07-03 19:24:09 +00:00
|
|
|
listen: false,
|
2021-06-21 20:25:38 +00:00
|
|
|
resolutions: [144, 240, 360, 480, 720, 1080, 1440, 2160, 4320],
|
2021-06-21 20:03:11 +00:00
|
|
|
defaultQuality: 0,
|
2021-06-22 10:54:20 +00:00
|
|
|
bufferingGoal: 10,
|
2021-07-05 13:18:54 +00:00
|
|
|
countryMap: CountryMap.COUNTRIES,
|
|
|
|
country: "US",
|
2021-07-18 20:20:35 +00:00
|
|
|
defaultHomepage: "trending",
|
2021-07-18 20:27:34 +00:00
|
|
|
showComments: true,
|
2021-07-30 09:03:16 +00:00
|
|
|
minimizeDescription: false,
|
2021-08-22 10:27:09 +00:00
|
|
|
watchHistory: false,
|
2021-08-25 16:30:21 +00:00
|
|
|
selectedLanguage: "en",
|
|
|
|
languages: [
|
2021-08-26 11:48:23 +00:00
|
|
|
{ code: "zh_Hant", name: "Chinese (Traditional)" },
|
2021-08-25 16:30:21 +00:00
|
|
|
{ code: "en", name: "English" },
|
|
|
|
{ code: "fr", name: "French" },
|
2021-08-26 11:48:23 +00:00
|
|
|
{ code: "de", name: "German" },
|
2021-08-26 14:02:28 +00:00
|
|
|
{ code: "el", name: "Greek" },
|
2021-08-25 19:21:42 +00:00
|
|
|
{ code: "lt", name: "Lithuanian" },
|
2021-08-26 11:48:23 +00:00
|
|
|
{ code: "ml", name: "Malayalam" },
|
|
|
|
{ code: "nb_NO", name: "Norwegian Bokmål" },
|
2021-08-26 18:49:12 +00:00
|
|
|
{ code: "tr", name: "Turkish" },
|
2021-08-28 05:12:52 +00:00
|
|
|
{ code: 'bn', name: 'Bengali' }
|
2021-08-25 16:30:21 +00:00
|
|
|
],
|
2021-08-27 07:33:55 +00:00
|
|
|
enabledCodecs: ["av1", "vp9", "avc"],
|
2020-11-17 05:15:35 +00:00
|
|
|
};
|
|
|
|
},
|
2021-07-21 10:59:53 +00:00
|
|
|
activated() {
|
2021-08-25 16:30:21 +00:00
|
|
|
document.title = this.$t("titles.preferences") + " - Piped";
|
2021-07-21 10:59:53 +00:00
|
|
|
},
|
2020-11-17 05:15:35 +00:00
|
|
|
mounted() {
|
2021-07-03 19:24:09 +00:00
|
|
|
if (Object.keys(this.$route.query).length > 0) this.$router.replace({ query: {} });
|
|
|
|
|
2021-04-07 11:45:40 +00:00
|
|
|
fetch("https://raw.githubusercontent.com/wiki/TeamPiped/Piped-Frontend/Instances.md")
|
2020-11-17 05:15:35 +00:00
|
|
|
.then(resp => resp.text())
|
|
|
|
.then(body => {
|
|
|
|
var skipped = 0;
|
|
|
|
const lines = body.split("\n");
|
|
|
|
lines.map(line => {
|
|
|
|
const split = line.split("|");
|
|
|
|
if (split.length == 4) {
|
|
|
|
if (skipped < 2) {
|
|
|
|
skipped++;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
this.instances.push({
|
|
|
|
name: split[0].trim(),
|
|
|
|
apiurl: split[1].trim(),
|
|
|
|
locations: split[2].trim(),
|
2021-04-07 11:45:40 +00:00
|
|
|
cdn: split[3].trim(),
|
2020-11-17 05:15:35 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
});
|
2021-08-25 19:55:30 +00:00
|
|
|
if (this.instances.filter(instance => instance.apiurl == this.apiUrl()).length == 0)
|
|
|
|
this.instances.push({
|
|
|
|
name: "Custom Instance",
|
|
|
|
apiurl: this.apiUrl(),
|
|
|
|
locations: "Unknown",
|
|
|
|
cdn: "Unknown",
|
|
|
|
});
|
2020-11-17 05:15:35 +00:00
|
|
|
});
|
|
|
|
|
2021-02-25 14:40:40 +00:00
|
|
|
if (localStorage) {
|
2021-07-05 13:18:54 +00:00
|
|
|
this.selectedInstance = this.getPreferenceString("instance", "https://pipedapi.kavin.rocks");
|
2021-02-25 14:40:40 +00:00
|
|
|
|
2021-07-03 19:24:09 +00:00
|
|
|
this.sponsorBlock = this.getPreferenceBoolean("sponsorblock", true);
|
2021-04-21 13:38:50 +00:00
|
|
|
if (localStorage.getItem("selectedSkip") !== null) {
|
2021-02-25 15:18:59 +00:00
|
|
|
var skipList = localStorage.getItem("selectedSkip").split(",");
|
2021-07-18 19:53:17 +00:00
|
|
|
this.skipSponsor = this.skipIntro = this.skipOutro = this.skipPreview = this.skipInteraction = this.skipSelfPromo = this.skipMusicOffTopic = false;
|
2021-02-25 15:18:59 +00:00
|
|
|
skipList.forEach(skip => {
|
|
|
|
switch (skip) {
|
|
|
|
case "sponsor":
|
|
|
|
this.skipSponsor = true;
|
|
|
|
break;
|
|
|
|
case "intro":
|
|
|
|
this.skipIntro = true;
|
|
|
|
break;
|
|
|
|
case "outro":
|
|
|
|
this.skipOutro = true;
|
|
|
|
break;
|
2021-07-18 19:53:17 +00:00
|
|
|
case "preview":
|
|
|
|
this.skipPreview = true;
|
|
|
|
break;
|
2021-02-25 15:18:59 +00:00
|
|
|
case "interaction":
|
|
|
|
this.skipInteraction = true;
|
|
|
|
break;
|
|
|
|
case "selfpromo":
|
|
|
|
this.skipSelfPromo = true;
|
|
|
|
break;
|
|
|
|
case "music_offtopic":
|
|
|
|
this.skipMusicOffTopic = true;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
console.log("Unknown sponsor type: " + skip);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
2021-05-06 17:30:02 +00:00
|
|
|
|
2021-07-03 19:24:09 +00:00
|
|
|
this.selectedTheme = this.getPreferenceString("theme", "dark");
|
|
|
|
this.autoPlayVideo = this.getPreferenceBoolean(localStorage.getItem("playerAutoPlay"), true);
|
|
|
|
this.listen = this.getPreferenceBoolean("listen", false);
|
2021-06-21 20:03:11 +00:00
|
|
|
this.defaultQuality = Number(localStorage.getItem("quality"));
|
2021-06-22 10:54:20 +00:00
|
|
|
this.bufferingGoal = Math.max(Number(localStorage.getItem("bufferGoal")), 10);
|
2021-07-05 13:18:54 +00:00
|
|
|
this.country = this.getPreferenceString("region", "US");
|
2021-07-18 20:20:35 +00:00
|
|
|
this.defaultHomepage = this.getPreferenceString("homepage", "trending");
|
2021-07-18 20:27:34 +00:00
|
|
|
this.showComments = this.getPreferenceBoolean("comments", true);
|
2021-07-30 09:03:16 +00:00
|
|
|
this.minimizeDescription = this.getPreferenceBoolean("minimizeDescription", false);
|
2021-08-22 10:27:09 +00:00
|
|
|
this.watchHistory = this.getPreferenceBoolean("watchHistory", false);
|
2021-08-25 16:30:21 +00:00
|
|
|
this.selectedLanguage = this.getPreferenceString("hl", "en");
|
2021-08-27 07:33:55 +00:00
|
|
|
this.enabledCodecs = this.getPreferenceString("enabledCodecs", "av1,vp9,avc").split(",");
|
2021-02-25 14:40:40 +00:00
|
|
|
}
|
2020-11-17 05:15:35 +00:00
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
onChange() {
|
2021-02-25 14:40:40 +00:00
|
|
|
if (localStorage) {
|
2021-06-28 19:45:03 +00:00
|
|
|
var shouldReload = false;
|
|
|
|
|
2021-08-22 10:27:09 +00:00
|
|
|
if (
|
|
|
|
this.getPreferenceString("theme", "dark") !== this.selectedTheme ||
|
2021-08-25 16:30:21 +00:00
|
|
|
this.getPreferenceBoolean("watchHistory", false) != this.watchHistory ||
|
2021-08-27 07:33:55 +00:00
|
|
|
this.getPreferenceString("hl", "en") !== this.selectedLanguage ||
|
|
|
|
this.getPreferenceString("enabledCodecs", "av1,vp9,avc") !== this.enabledCodecs.join(",")
|
2021-08-22 10:27:09 +00:00
|
|
|
)
|
|
|
|
shouldReload = true;
|
2021-06-28 19:45:03 +00:00
|
|
|
|
2020-11-17 05:15:35 +00:00
|
|
|
localStorage.setItem("instance", this.selectedInstance);
|
2021-02-25 14:40:40 +00:00
|
|
|
localStorage.setItem("sponsorblock", this.sponsorBlock);
|
2021-02-25 15:18:59 +00:00
|
|
|
|
|
|
|
var sponsorSelected = [];
|
|
|
|
if (this.skipSponsor) sponsorSelected.push("sponsor");
|
|
|
|
if (this.skipIntro) sponsorSelected.push("intro");
|
|
|
|
if (this.skipOutro) sponsorSelected.push("outro");
|
2021-07-18 19:53:17 +00:00
|
|
|
if (this.skipPreview) sponsorSelected.push("preview");
|
2021-02-25 15:18:59 +00:00
|
|
|
if (this.skipInteraction) sponsorSelected.push("interaction");
|
|
|
|
if (this.skipSelfPromo) sponsorSelected.push("selfpromo");
|
2021-04-07 11:45:40 +00:00
|
|
|
if (this.skipMusicOffTopic) sponsorSelected.push("music_offtopic");
|
2021-02-25 15:18:59 +00:00
|
|
|
localStorage.setItem("selectedSkip", sponsorSelected);
|
2021-05-06 17:30:02 +00:00
|
|
|
|
2021-06-28 19:45:03 +00:00
|
|
|
localStorage.setItem("theme", this.selectedTheme);
|
2021-05-06 17:30:02 +00:00
|
|
|
localStorage.setItem("playerAutoPlay", this.autoPlayVideo);
|
2021-07-03 19:24:09 +00:00
|
|
|
localStorage.setItem("listen", this.listen);
|
2021-06-21 20:03:11 +00:00
|
|
|
localStorage.setItem("quality", this.defaultQuality);
|
2021-06-22 10:54:20 +00:00
|
|
|
localStorage.setItem("bufferGoal", this.bufferingGoal);
|
2021-07-05 13:18:54 +00:00
|
|
|
localStorage.setItem("region", this.country);
|
2021-07-18 20:20:35 +00:00
|
|
|
localStorage.setItem("homepage", this.defaultHomepage);
|
2021-07-18 20:27:34 +00:00
|
|
|
localStorage.setItem("comments", this.showComments);
|
2021-07-30 09:03:16 +00:00
|
|
|
localStorage.setItem("minimizeDescription", this.minimizeDescription);
|
2021-08-22 10:27:09 +00:00
|
|
|
localStorage.setItem("watchHistory", this.watchHistory);
|
2021-08-25 16:30:21 +00:00
|
|
|
localStorage.setItem("hl", this.selectedLanguage);
|
2021-08-27 07:33:55 +00:00
|
|
|
localStorage.setItem("enabledCodecs", this.enabledCodecs.join(","));
|
2021-06-28 19:45:03 +00:00
|
|
|
|
|
|
|
if (shouldReload) window.location.reload();
|
2021-02-25 14:40:40 +00:00
|
|
|
}
|
2020-11-30 06:39:40 +00:00
|
|
|
},
|
|
|
|
sslScore(url) {
|
2021-04-07 11:45:40 +00:00
|
|
|
return "https://www.ssllabs.com/ssltest/analyze.html?d=" + new URL(url).host + "&latest";
|
|
|
|
},
|
|
|
|
},
|
2020-11-17 05:15:35 +00:00
|
|
|
};
|
|
|
|
</script>
|