andychucs / conning_tower

艦これ専ブラ・iPhone・iPad・Android・KanColle Browser(艦隊これくしょん-艦これ-/舰队收藏 浏览器) 
Apache License 2.0
79 stars 4 forks source link

Gadget server and cookie support #218

Closed ericchu923 closed 7 months ago

ericchu923 commented 8 months ago

Is your feature request related to a problem? Please describe.

Describe the solution you'd like

Describe alternatives you've considered

andychucs commented 8 months ago

I have checked poi-plugin-let-me-in, use 3rd party cache should redirect url on iOS that need a VPN service.

ConningTower is a browser app and should not provide VPN services, as this would conflict with the VPN services already run on iOS and Android. The service may still be offered as part of this project in the future.

Quantumult X and similar applications can implement URL redirects via rules. While unproven, it is suggested to use these popular web tools.

If there is a way to implement this feature using the JavaScript console or by editing cookies, please let me know. It should be easy to implement.


After some research, ConningTower can easily implement this feature by on Android by use ProxyController and WebViewAssetLoader. But both of this two class are Android-only, it may cannot implement on WKWebView. I will not focus on this feature for a few months, because the number of Android users is not too much.

See also: https://inappwebview.dev/docs/webview/proxy-controller https://inappwebview.dev/docs/webview/webview-asset-loader

ericchu923 commented 7 months ago

These Javascript codes are used to edit cookies when there is no Kancolle browser on iOS(Use Safari):

javascript:document.cookie='ckcy=1;expires=Sun, 04 Feb 2029 09:00:09 GMT;domain=osapi.dmm.com;path=/';

javascript:document.cookie='ckcy=1;expires=Sun, 04 Feb 2029 09:00:09 GMT;domain=203.104.209.7;path=/';

javascript:document.cookie='ckcy=1;expires=Sun, 04 Feb 2029 09:00:09 GMT;domain=www.dmm.com;path=/netgame/';

javascript:document.cookie='ckcy=1;expires=Sun, 04 Feb 2029 09:00:09 GMT;domain=log-netgame.dmm.com;path=/';

Still works now for me, hope it useful

andychucs commented 7 months ago

I have add a "Modify Cookie" button on web info page in 1.12.1+2 release. It looks not work well.