// ==UserScript==
// @name Acfun摸鱼插件-PS
// @version 2.0
// @description Acfun摸鱼插件
// @match http*://www.acfun.cn/v/list63/index.htm*
// @match http*://www.acfun.cn/a/ac*
// @match http*://www.acfun.cn/*
// @author 冲锋
// @require http://code.jquery.com/jquery-1.8.1.min.js
// @namespace https://greasyfork.org/users/6373155
// @downloadURL none
// ==/UserScript==
(function() {
'use strict';
console.log("插件启动成功");
// $("#header").remove();
//$(".a-column-left").remove();
//$(".ArticleIndexAd").remove();
//$(".a-column-right").remove();
// console.log($(".ArticleDelveFieldContent"));
//console.log($(".ArticleDelveFieldContent").find('.article-delve-image'));
//$(".ArticleDelveFieldContent").find(".article-delve-image").remove();
var frame="http://wx1.sinaimg.cn/large/006p6Me7gy1fv94l1er6xg31ao0t50ub.gif";
var bg="url('http://wx3.sinaimg.cn/large/006p6Me7gy1fv94l21su4j31ao0s2q41.jpg') ";
var headUrl="https://wx1.sinaimg.cn/large/006p6Me7ly1g83tcyhdpij31hc034aab.jpg";
var leftUrl="https://wx4.sinaimg.cn/large/006p6Me7ly1g83tctnhvej301m0swaa2.jpg";
var rightUrl="https://wx2.sinaimg.cn/large/006p6Me7ly1g83tcw8n15j30930sx0t7.jpg";
var bottomUrl="https://wx4.sinaimg.cn/large/006p6Me7ly1g84qjdaycoj31hc014dgk.jpg";
var checkBoxUrl="https://wx2.sinaimg.cn/large/006p6Me7ly1g83u01j9c8j300v00t04s.jpg";
var checkBarUrl="https://wx4.sinaimg.cn/large/006p6Me7ly1g84qjhbn2jj306y00u0h4.jpg";
var img=$("
");
var headImg=$("
");
var leftImg=$("
");
var rightImg=$("
");
var bottomImg=$("
");
var div=$("
")
var ifShowBgDiv=$(`
是否显示背景
`
); //是否显示背景
var ifShowBg=localStorage.getItem("ifShowBg");
if(ifShowBg=="1"){
$(ifShowBgDiv).find(".ifShowBgCheckBox").css({
opacity:0,
});
$("body").css("cssText","#fff");
}
else{
$(ifShowBgDiv).find(".ifShowBgCheckBox").css({
opacity:1,
});
$("body").css("cssText","background:"+bg+"!important");
}
$(ifShowBgDiv).find(".ifShowBgCheckBox").click(function (){
if(ifShowBg==0){
ifShowBg=1;
localStorage.setItem("ifShowBg", "1");
$(".ifShowBgCheckBox").css({
opacity:0,
});
$("body").css("cssText","#fff");
}
else{
ifShowBg=0
localStorage.setItem("ifShowBg", "0");
$(".ifShowBgCheckBox").css({
opacity:1,
});
$("body").css("cssText","background:"+bg+"!important");
}
});
var ifShowBottomDiv=$(`
是否显示底下任务栏
`
);//是否显示底条
var ifShowBottom=localStorage.getItem("ifShowBottom");
console.log("载入"+ifShowBottom)
if(ifShowBottom==1){
$(ifShowBottomDiv).find(".ifShowBottomCheckBox").css({
opacity:0,
});
$(bottomImg).css("opacity","1");
}
else{
$(ifShowBottomDiv).find(".ifShowBottomCheckBox").css({
opacity:1,
});
$(bottomImg).css("opacity","0");
}
$(ifShowBottomDiv).find(".ifShowBottomCheckBox").click(function (){
if(ifShowBottom==0){
ifShowBottom=1;
localStorage.setItem("ifShowBottom", "1");
$(".ifShowBottomCheckBox").css({
opacity:0,
});
$(".bottomImg").css("opacity","1");
}
else{
ifShowBottom=0
localStorage.setItem("ifShowBottom", "0");
console.log("保存成功")
$(".ifShowBottomCheckBox").css({
opacity:1,
});
$(".bottomImg").css("opacity","0");
}
});
var windowWidth=window.screen.width ;
var windowHeight=window.screen.height ;
console.log(windowWidth);
console.log(windowHeight);
$("#header").css({
marginTop:"112px",
}
)
$(".header-top").css({
marginTop:"112px",
}
)
$(headImg).css({
width:windowWidth,
position:"fixed",
top:0,
left:0,
zIndex:"20",
});
$(leftImg).css({
position:"fixed",
top:0,
left:0,
zIndex:"21",
});
$(rightImg).css({
position:"fixed",
top:0,
right:0,
zIndex:"21",
});
$(bottomImg).css({
position:"fixed",
height:"40px",
left:0,
bottom:0,
zIndex:"22",
});
$(div).append(headImg);
$(div).append(leftImg)
$(div).append(rightImg)
$(div).append(bottomImg)
$(div).append(ifShowBgDiv)
$(div).append(ifShowBottomDiv)
$("body").append(div);
$("#main").css("cssText","background:url()!important");
})();