Browse Source

添加 'youku/vip.user.js'

master
502647092 4 years ago
parent
commit
589e2e2bd0
  1. 28
      youku/vip.user.js

28
youku/vip.user.js

@ -0,0 +1,28 @@
// ==UserScript==
// @name 全自动刷优酷VIP
// @namespace https://www.zuanke8.com/thread-4774645-1-1.html
// @version 0.1
// @description 开启脚本请先去 http://m.tb.cn/h.WF3pdS5 走一遍流程(登录淘宝、优酷),VIP天数在 http://vip.youku.com/vips/user.html 页面查看
// @author heyman
// @match https://market.m.taobao.com/apps/market/m-vip/benefit-detail.html?*
// @match https://sky.vip.youku.com/svip/equitycenter?*
// @match https://sky.vip.youku.com/svip/equitycenter/getEquity?*
// ==/UserScript==
(function() {
if (location.href.match(/https:\/\/market\.m\.taobao\.com\/apps\/market\/m-vip\/benefit-detail\.html/)){
setTimeout(function(){
var realConfirm=window.confirm;
unsafeWindow.confirm=function(){
window.confirm=realConfirm;
return true;
};
document.evaluate('/html/body/div/div/div[6]/div/div[1]/span', document).iterateNext().click();
}, 2000);
}
else if (location.href.match(/https:\/\/sky\.vip\.youku\.com\/svip\/equitycenter\?.*/)){
setTimeout(function(){document.getElementsByClassName('getButton')[0].click();}, 1000);
}
else if (location.href.match(/https:\/\/sky.vip.youku.com\/svip\/equitycenter\/getEquity\?*/)){
setTimeout(function(){location.href = 'http://m.tb.cn/h.WF3pdS5';}, 3000);
}
})();
Loading…
Cancel
Save