/**
 * 本模块负责修复主页失效分区
 */ /**
 * 本模块负责修复主页失效分区
 */ ( function ( ) { try { API . importModule ( "biliIndexRec.js" ) ; API . importModule ( "ad2info.js" ) ; API . importModule ( "mediaRank.js" ) ; API . importModule ( "indexRecommend.js" ) ; API . jsonphook ( [ "region" , "rid=165" ] , function ( xhr ) { xhr . url = xhr . url . replace ( "rid=165" , "rid=202" ) ; } ) ; API . jsonphook ( [ "newlist" , "rid=165" ] , function ( xhr ) { xhr . url = xhr . url . replace ( "rid=165" , "rid=203" ) ; } ) ; API . jsonphook ( [ "region" , "original=1" ] , function ( xhr ) { xhr . url = xhr . url . replace ( "original=1" , "original=0" ) ; } ) ; API . jsonphook ( [ "api.bilibili.com/x/web-interface/ranking/index" ] , function ( xhr ) { xhr . url = xhr . url . replace ( "ranking/index" , "index/top" ) ; } ) ; } catch ( e ) { toast . error ( "indexSort.js" , e ) ; } } ) ( ) ;