Created
June 26, 2025 05:37
-
-
Save cintagram/1202073b4a82d745bf2b9fe11101e667 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
! function() { | |
for (var t = { | |
get _get() { | |
var n = "default"; | |
try { | |
n = "link" == (n = localStorage.getItem("player-select") || n) ? "default" : n | |
} catch (i) { | |
console.log(i) | |
} | |
return n | |
}, | |
set _set(e) { | |
try { | |
localStorage.setItem("player-select", e) | |
} catch (o) { | |
console.log(o) | |
} | |
} | |
}, l = "/assets/playJS3/", a = { | |
default: ["jXAdOXBdRh", "p2p-engine.min", "VGwZAkded8"], | |
nplayer: ["iC4pLPoWbN.js"], | |
vplayer: [l + "lbYcIsrir7.js", "https://cdn.jsdelivr.net/npm/videojs-seek-buttons/dist/videojs-seek-buttons.min.js"] | |
}, r = document.querySelectorAll(".player-item-list div"), s = 0; s < r.length; s++) r[s].classList.remove("active"), r[s].addEventListener("click", function() { | |
if ("link" != this.classList.value) { | |
for (var n = 0; n < r.length; n++) r[n].classList.remove("active"); | |
t._set = this.classList, this.classList.add("active"); | |
try { | |
window.location.reload() | |
} catch (i) { | |
alert("새로고침을 하면 플레이어가 변경됩니다.") | |
} | |
} | |
}), t._get == r[s].classList.value && r[s].classList.add("active"); | |
function c(t) { | |
return new Promise(function(n, i) { | |
var o = window.define; | |
window.define = void 0; | |
var l = document.createElement("script"); | |
l.type = "text/javascript", l.src = t, l.onload = function() { | |
window.define = o, n(t) | |
}, l.onerror = function() { | |
i(Error("Loading script failed:" + t)) | |
}, document.querySelector("body").appendChild(l) | |
}) | |
} | |
if ("vplayer" == t._get) | |
for (var d = 0; d < a.vplayer.length; d++) c(a.vplayer[d]).then(function() { | |
console.log("loaded") | |
}, function() { | |
console.log("not loaded") | |
}); | |
else if ("nplayer" == t._get) c(l + a.nplayer[0]).then(function() { | |
console.log("loaded") | |
}, function() { | |
console.log("not loaded") | |
}); | |
else | |
for (d = 0; d < a.default.length; d++) c(l + a.default[d] + ".js?v=2339").then(function() { | |
console.log("loaded") | |
}, function() { | |
console.log("not loaded") | |
}); | |
try { | |
var p = JSON.parse(atob(_aldata)), | |
g = ".player-item-list .link"; | |
document.querySelector(g).setAttribute("data-clipboard-text", location.protocol + "//" + location.host + "/detail/id/" + p.ani_id_db); | |
var h = new ClipboardJS(g); | |
function y(t) { | |
$(g).append('<div class="TooltipShow">' + t + "</div>") | |
} | |
function m() { | |
setTimeout(function() { | |
$(g + " .TooltipShow").remove() | |
}, 1500) | |
} | |
h.on("success", function() { | |
y("복사완료!"), m() | |
}), h.on("error", function() { | |
y("실패..."), m() | |
}) | |
} catch (b) { | |
console.log(b) | |
} | |
}(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment