Implement custom JS

As referenced in Issue #28
This commit is contained in:
calzoneman 2013-04-16 11:11:10 -05:00
parent 78ecc042d6
commit 1ee3c06213
6 changed files with 359 additions and 7 deletions

View file

@ -66,6 +66,7 @@ function initCallbacks() {
document.title = opts.pagetitle;
PAGETITLE = opts.pagetitle;
$("#opt_customcss").val(opts.customcss);
$("#opt_customjs").val(opts.customjs);
$("#customCss").remove();
if(opts.customcss.trim() != "") {
$("<link/>").attr("rel", "stylesheet")
@ -74,6 +75,9 @@ function initCallbacks() {
.insertAfter($("link[href='./assets/css/ytsync.css']"));
}
$("#opt_allow_voteskip").prop("checked", opts.allow_voteskip);
if(opts.customjs.trim() != "") {
$.getScript(opts.customjs);
}
CHANNELOPTS = opts;
if(opts.qopen_allow_qnext)