广发DIY签帐监控JS脚本

爱必应

网友羁绊-5cmls分享:
写了几句代码实现本地监控,简单不求人
步骤:
1、chome或者360极速浏览器打开签帐页面:
https://shop.cgbchina.com.cn/mall/goods/03140714143403208122?itemCode=03140714143403208122
2、F12,console控制台输入以下代码,回车,允许浏览器通知权限,然后就可以去浏览其他线报了
(一分钟提醒一次)

  1. const interval=1000*60*1;const url=’https://shop.cgbchina.com.cn/mall/goods/03140714143403208122?itemCode=03140714143403208122′;function show_notification(title,content){if(window.Notification){var popNotice=function(){if(Notification.permission=="granted"){var notification=new Notification(title,{body:content,icon:’https://pic.downk.cc/item/5e0b280a76085c328908f140.jpg’});notification.onclick=function(){notification.close()}}};if(Notification.permission=="granted"){popNotice()}else if(Notification.permission!="denied"){Notification.requestPermission(function(permission){popNotice()})}}else{console.error(‘浏览器不支持Notification’)}}const myajax=(function($){var Ajax=function(){this.$=$;this.headers={}};Ajax.prototype.addHeader=function(obj){for(var i in obj){this.headers[i]=obj[i]}return this};Ajax.prototype.removeHeader=function(key){delete this.headers[key];return this};Ajax.prototype.removeAllHeader=function(){this.headers={};return this};Ajax.prototype.get=function(url,data,succCallback,dataType,failCallback,middleware){dataType=dataType||"json";failCallback=failCallback||myajax.defaultFailCallback;middleware=middleware||myajax.defaultMiddleware;var opts={url:url,type:"GET",dataType:dataType,data:data};exec(opts,middleware,succCallback,failCallback);return this};Ajax.prototype.post=function(url,data,succCallback,dataType,failCallback,middleware){dataType=dataType||"json";failCallback=failCallback||myajax.defaultFailCallback;middleware=middleware||myajax.defaultMiddleware;var opts={url:url,type:"POST",dataType:dataType,data:data};exec(opts,middleware,succCallback,failCallback);return this};Ajax.prototype.file=function(url,data,succCallback,dataType,failCallback,middleware){dataType=dataType||"json";failCallback=failCallback||myajax.defaultFailCallback;middleware=middleware||myajax.defaultMiddleware;var opts={url:url,type:"POST",dataType:dataType,data:data,processData:false,contentType:false};exec(opts,middleware,succCallback,failCallback);return this};var exec=function(opts,middleware,succCallback,failCallback){opts.success=function(data){middleware&&middleware(data);succCallback&&succCallback(data)};opts.error=function(data){failCallback&&failCallback()};opts["headers"]=myajax.headers;myajax.$.ajax(opts)};return new Ajax()})(window.Zepto||jQuery);myajax.defaultFailCallback=function(){};myajax.defaultMiddleware=function(){};let interval_id=0;function run(){myajax.get(url,{},(data)=>{let index=data.indexOf(‘icon-item-state icon-sold-out stock-zero-img’);console.log(‘刷刷刷’);if(index<=0){show_notification(‘签账单有货了’,’只要撸不死,就要往死里撸!’)}},’text’)}if(window.Notification)Notification.requestPermission();interval_id=setInterval(()=>{run()},interval);

复制代码效果:

现在有货,可以去体验下。。

网友有事请留言分享:
随便换了 现在 大佬 你整的晚了

网友羁绊-5cmls分享:


随便换了 现在 大佬 你整的晚了

以后用

原文链接:,转发请注明来源!

发表评论