2019-12-01 15:26:39 +08:00
/ *
52 pojie Forum get cookie
2019-12-29 16:31:23 +08:00
Description :
Need to manually log in to the https : //www.52pojie.cn/home.php?mod=space checkin to get cookie. If you receive a cookie success notification, you can disable this script.
2019-12-01 15:26:39 +08:00
Surge 4.0 : [ Script ]
http - request https : \ / \ / www \ . 52 pojie \ . cn \ / home \ . php \ ? script - path = https : //raw.githubusercontent.com/NobyDa/Script/master/Surge/52pojieDailyBonus/Get-Cookie.js
MITM = www . 52 pojie . cn
* /
if ( $request . url . indexOf ( 'home' ) != - 1 ) {
if ( $request . headers [ 'Cookie' ] ) {
var headerWA = $request . headers [ 'Cookie' ] ;
$persistentStore . write ( headerWA , "CookieWA" ) ;
$notification . post ( "Get Cookie success! 🎉" , "" , "You can disable the HTTP request script" )
}
}
$done ( { } )