Compare commits

..
8 Commits
4 changed files with 2 additions and 12 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
node_modules/ node_modules/
docs/
*.log *.log
.DS_Store .DS_Store
dist/
-4
View File
@@ -1,4 +0,0 @@
docs/
*.log
.git
.github
-6
View File
@@ -2889,12 +2889,7 @@
headerButtons.prepend(installBtn); headerButtons.prepend(installBtn);
} }
function isYakTubeInstance() {
return window.location.hostname.includes('yaktube.yakhub.com.tr') || getInstanceName() === 'YakTube';
}
function injectApkDownloadButton() { function injectApkDownloadButton() {
if (!isYakTubeInstance()) return;
// 1. If inside APK: NEVER show APK button // 1. If inside APK: NEVER show APK button
if (isInsideYakTubeApp) { if (isInsideYakTubeApp) {
var existBtnApp = document.getElementById('yaktube-apk-download-btn'); var existBtnApp = document.getElementById('yaktube-apk-download-btn');
@@ -2939,7 +2934,6 @@
} }
function injectSidebarApkLink() { function injectSidebarApkLink() {
if (!isYakTubeInstance()) return;
// If inside APK: NEVER show in sidebar // If inside APK: NEVER show in sidebar
if (isInsideYakTubeApp) { if (isInsideYakTubeApp) {
var existLink = document.getElementById('yaktube-sidebar-apk-link'); var existLink = document.getElementById('yaktube-sidebar-apk-link');
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "peertube-plugin-yaktube-ondemand", "name": "peertube-plugin-yaktube-ondemand",
"version": "1.4.8", "version": "1.4.7",
"description": "Accessible On-Demand YouTube Import, Live Streams, Smart Recommendations and A11y Engine for PeerTube", "description": "Accessible On-Demand YouTube Import, Live Streams, Smart Recommendations and A11y Engine for PeerTube",
"main": "main.js", "main": "main.js",
"library": "./main.js", "library": "./main.js",