mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-10 08:18:29 +01:00
add env lol
This commit is contained in:
parent
d301c25daf
commit
a43e6fc78c
1 changed files with 21 additions and 21 deletions
|
@ -514,11 +514,16 @@ text-shadow: 1px 1px #000,1px 1px 0.1px #000;!important;
|
||||||
</script>
|
</script>
|
||||||
<ptd-app-iconfixer>
|
<ptd-app-iconfixer>
|
||||||
<script>
|
<script>
|
||||||
var link = document.querySelector("link[rel*='icon']") || document.createElement('link');
|
// Preload the icon image
|
||||||
link.type = 'image/svg';
|
var iconImage = new Image();
|
||||||
link.rel = 'shortcut icon';
|
iconImage.src = "/css/yt-ukraine.svg";
|
||||||
link.href = '/css/yt-ukraine.svg';
|
|
||||||
document.getElementsByTagName('head')[0].appendChild(link);
|
// Wait for the icon image to load before showing it
|
||||||
|
iconImage.onload = function() {
|
||||||
|
var iconElement = document.querySelector('link[rel="icon"]');
|
||||||
|
iconElement.href = iconImage.src;
|
||||||
|
iconElement.type = "image/svg+xml";
|
||||||
|
};
|
||||||
</script>
|
</script>
|
||||||
</ptd-app-iconfixer>
|
</ptd-app-iconfixer>
|
||||||
<ptd-app-ejs>
|
<ptd-app-ejs>
|
||||||
|
@ -1419,7 +1424,6 @@ Recommended Videos
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
function removeParam(paramName) {
|
function removeParam(paramName) {
|
||||||
let searchParams = new URLSearchParams(window.location.search);
|
let searchParams = new URLSearchParams(window.location.search);
|
||||||
|
@ -1481,23 +1485,19 @@ if (/[?&]autoplay=/.test(location.search)) {
|
||||||
location.href = "/watch?v=<%- k.Video.Recommendations.Video[0].id%>&autoplay=<%-btoa("1f739d935676111cfff4b4693e3816e664797050" + k.Video.Recommendations.Video[0].id ) %>";
|
location.href = "/watch?v=<%- k.Video.Recommendations.Video[0].id%>&autoplay=<%-btoa("1f739d935676111cfff4b4693e3816e664797050" + k.Video.Recommendations.Video[0].id ) %>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script><script src="/static/app.js?ver=<%-btoa("1f739d935676111cfff4b4693e3816e664797050" + k.Video.Recommendations.Video[0].id ) %>">
|
||||||
|
</script><script src="/static/custom-css.js"> </script><script>
|
||||||
<script data-api-endpoint="/api/">
|
window.GLOBAL_ENV = {
|
||||||
/*
|
API_ENDPOINT_INVID:"https://invid-api.poketube.fun/api/v1",
|
||||||
* Loads modules
|
API_ENDPOINT_INNER:"https://inner-api.poketube.fun/api/",
|
||||||
*/
|
METRICS_URL:"<%=t%>t",
|
||||||
try {
|
PROXY_URL_VIDEO:"<%=u%>",
|
||||||
const app_main = "/static/app.js?ver=<%-btoa("1f739d935676111cfff4b4693e3816e664797050" + k.Video.Recommendations.Video[0].id ) %>";
|
PROXY_URL:"https://p.poketube.fun",
|
||||||
const script = document.createElement("script");
|
YOUTUBEI_URL:"https://www.youtube.com/youtubei/v1",
|
||||||
script.src = app_main;
|
POKETUBE_APIKEY:"AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8"
|
||||||
document.head.appendChild(script);
|
|
||||||
} catch(err) {
|
|
||||||
console.error(`Error while loading module files: ${err}`)
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<script src="/static/custom-css.js"> </script>
|
|
||||||
|
|
||||||
<% if (!optout) { %>
|
<% if (!optout) { %>
|
||||||
<!-- MORE INFO :https://poketube.fun/privacy -->
|
<!-- MORE INFO :https://poketube.fun/privacy -->
|
||||||
<!-- MORE INFO :https://poketube.fun/privacy -->
|
<!-- MORE INFO :https://poketube.fun/privacy -->
|
||||||
|
|
Loading…
Reference in a new issue