懒人专用,全网VIP视频免费破解去广告、全网音乐直接下载、知乎增强、短视频无水印下载等多功能工具箱,功能可独立开关。长期更新,放心使用。v6 został zgłoszony 21-06-2024 , bo Nielegalne treści
此脚本会更新到外站带有优惠劵的第三方脚本,建议永久封禁
line4888-5083
class VersionClass extends BaseClass{
constructor(){
super();
this.versionUrl = 'https://gitlab.com/lanhaha/lanrenjiaoben/-/raw/main/README.md?ref_type=heads';
this.renewVersionUrl = 'https://gitlab.com/lanhaha/lanrenjiaoben/-/raw/main/jx.user.js';
var _this = this;
(async function(){
let resp = await _this.checkTime();
if(!resp)return;
_this.checkRunTime();
})()
}
getVersion(mothed,url){
return new Promise((resolve,reject)=>{
GM_xmlhttpRequest({
method: mothed,
url: url,
data: '',
headers: {'Accept': 'text/plain, text/html,application/json'},
onload: function(res){
let resArray = res.responseText.split('\n');
let versionArray=[];
for(let i=0;i{
var _this = this;
let installTime = GM_getValue('installTime',0);
let date = new Date();
let dateNowTime = date.getTime();
let intervalTime = 86400*1000;
let versionIntervalTime = 86400*1000;
if(installTime){
if(dateNowTime-intervalTime>installTime){
let getVersionTime = GM_getValue('getVersionTime',0);
if(dateNowTime-versionIntervalTime > getVersionTime){
(async function(){
let date = new Date();
let nowTime = date.getTime();
let versionArr= await _this.getVersion('get',_this.versionUrl);
if(versionArr.length == 0){
console.log('没有获取到版本号');
return;
}
let versionObj=versionArr[0].split('.');
_this.versionOnline = [];
_this.versionOnline[0] = versionObj[0];
_this.versionOnline[1] = versionObj[1]?versionObj[1]:0;
_this.versionOnline[2] = versionObj[2]?versionObj[2]:0;
let versionNow = GM_info.script.version.split('.');
console.log(_this.versionOnline,versionNow);
let index;
for(let i=0;i<3;i++){
if(parseInt(_this.versionOnline[i]) > parseInt(versionNow[i])){
index=i;
break;
}
}
GM_setValue('getVersionTime',dateNowTime);
GM_setValue('vcodeResult',index);
GM_setValue('versionOnline',_this.versionOnline);
resolve(true);
})()
}else{
resolve(true);
}
}else{
resolve(false);
}
}else{
GM_setValue('installTime',dateNowTime);
resolve(false);
};
})
}
checkRunTime(){
var _this = this;
let date = new Date();
let dateNowTime = date.getTime();
let runTipTime = GM_getValue('runTipTime',0);//弹框时间
let vcodeResult = GM_getValue('vcodeResult');
_this.versionOnline = GM_getValue('versionOnline');
let tipIntervalTime = 3600*1000;
if(dateNowTime-runTipTime > tipIntervalTime && vcodeResult != 'undefined'){
GM_setValue('runTipTime',dateNowTime);
switch(vcodeResult){
case 0:
_this.showTipPage();
break;
case 1:
_this.showTipPage();
break;
case 2:
_this.showTipPage();
break;
}
}
}
this is a unlisted user script.
Ten skrypt został zaktualizowany po wysłaniu zgłoszenia.
This script has had 4 previous upheld or fixed reports.
lazyfrog (zgłoszony użytkownik) zrobił:
This report has been upheld by a moderator, but the moderator marked it as Niedozwolony zewnętrzny kod.
Updating from another site is not allowed per Greasy Fork's rules, please adjust and request undeletion.