88// @updateURL https://rawgit.com/UserScript/Weibo-Keep-V5/master/src/meta.js
99// @icon http://weibo.com/favicon.ico
1010// @grant unsafeWindow
11- // @run -at document-start
1211// @noframes
1312// @include http://weibo.com/*
1413// @include http://www.weibo.com/*
@@ -184,8 +183,6 @@ void function () {
184183 url = url || req
185184 return _isV6URL ( url ) ? url . split ( paramV6 ) . join ( paramV5 ) : url
186185 }
187- //group: 'http://weibo.com/mygroups?gid=7509&wvr=6&leftnav=1'
188- //comment: 'http://weibo.com/comment/inbox?topnav=1&wvr=5&f=1'
189186 function _getPageType ( url ) {
190187 url = url || req
191188 var type = ''
@@ -238,11 +235,6 @@ void function () {
238235 function _getWeiboConfig ( ) {
239236 return ( unsafeWindow || window ) . $CONFIG
240237 }
241- //$CONFIG['islogin'] ='1';
242- //$CONFIG['skin'] ='skin002';
243- //$CONFIG['uid'] = '1645021302';
244- //$CONFIG['nick'] = 'XXXXX';
245- //$CONFIG['domain'] = 'cssmagic';
246238 function _isDebugMode ( ) {
247239 var config = _getWeiboConfig ( )
248240 var result = false
@@ -253,15 +245,6 @@ void function () {
253245 }
254246 return result
255247 }
256- //$CONFIG['pageid'] = 'myfollow';
257- //$CONFIG['jsPath'] = 'http://js.t.sinajs.cn/t5/';
258- //$CONFIG['cssPath'] = 'http://img.t.sinajs.cn/t5/';
259- //$CONFIG['imgPath'] = 'http://img.t.sinajs.cn/t5/';
260- //
261- //$CONFIG['pageid']='v6_content_home';
262- //$CONFIG['jsPath']='http://js.t.sinajs.cn/t6/';
263- //$CONFIG['cssPath']='http://img.t.sinajs.cn/t6/';
264- //$CONFIG['imgPath']='http://img.t.sinajs.cn/t6/';
265248 function _isV6Page ( ) {
266249 var config = _getWeiboConfig ( )
267250 var result = false
@@ -328,11 +311,9 @@ void function () {
328311 //init
329312 logInit ( )
330313 restoreCookie ( )
331- $ . on ( window , 'DOMContentLoaded' , function ( ) {
332- logPageInfo ( )
333- if ( _isV6Page ( ) ) {
334- bind ( )
335- }
336- } )
314+ logPageInfo ( )
315+ if ( _isV6Page ( ) ) {
316+ bind ( )
317+ }
337318
338319} ( )
0 commit comments