免登陆看高清斗鱼和虎牙直播。
当前为
// ==UserScript==
// @name 免登陆看高清斗鱼和虎牙直播
// @namespace http://tampermonkey.net/
// @version 0.1
// @description 免登陆看高清斗鱼和虎牙直播。
// @author xxboy
// @include *www.douyu.com/*
// @include *www.huya.com/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
// Your code here...
if(top.window.location.href.indexOf("douyu.com") > -1){
var storage=window.localStorage;
var recordTime = storage.getItem('rateRecordTime_h5p_room');
var recordObj = JSON.parse(recordTime);
console.log(recordObj);
recordObj.v = -888888;
recordTime = JSON.stringify(recordObj);
storage.setItem('rateRecordTime_h5p_room',recordTime);
}
if(top.window.location.href.indexOf("huya.com") > -1){
localStorage.setItem("loginTipsCount","v");
}
})();