This addon will not work on Manifest V3 with only declarativeNetRequest API.
So if Chromium based browsers totally abandon MV2 in the future, I'll stop maintaining for these browsers.
- Install it from Chrome webstore or Firefox addons. For Firefox Android users, before Addons General Availability, you need to use Beta/Nightly with Addons Collections to use Radiko.
- Do nothing or change default area by clicking icon which only affects live area.
- Recording live or download timeshift by clicking icon.
- Click icon or click pause button to stop recording.
- activeTab : to get tab's url to decide whether auto refresh or alert or which radio to record.
- cookies : for force setting radiko.jp's current location.
- storage : for storing your location configuration.
- webRequest : modify request to pass the authentication.
- webRequestBlocking : modify request to pass the authentication.
- *://*.radiko.jp/* : the only site we aimed at.
- declartiveContent : [TODO] for showing icon only on radiko pages.But firefox does not support this api.When firefox supports this api,tab permission will not be required.
- downloads : for downloading recored audio.
- *://*.smartstream.ne.jp/* : the site where audio stored.
- unlimitedStorage : for recording radio.
-
version 0.3.6.1
update manifest key for Firefox for Android
-
version 0.3.6
major improvement on Firefox for Android
-
version 0.3.5
update css in popup to fix issue in chrome. Many Thanks to @fireattack.
upadte new radio-area map
sync radiko android version code
-
version 0.3.4
fix matching when urls have query param
-
version 0.3.3
fix bug on chrome by calling storage API before DOMContentLoaded
-
version 0.3.2
fix area check bypass
upadte new radio-area map
-
version 0.3.1
fix m3u8 endpoints
fix aac urls endpoints
fix drag issue in some cases.
-
version 0.3.0
improve timezone handle.
upadte new radio-area map
sync radiko android version code
-
version 0.2.9
update css in popup to fix issue in chrome 94 (close #8). Many Thanks to @andykamezou for his css advise.
hijack ajax to avoid #!out issue (replace old method)
upadte new radio-area map
sync radiko android version code
-
version 0.2.7.2
since chrome do not count hash in history. revert v0.2.7.
-
version 0.2.7.1
make page history correct via history.back
-
version 0.2.7
bypass unclosable dialog
-
version 0.2.6
make share page bypass geoblock (fix #1)
sync radiko android version code to 7.3.7
-
version 0.2.5.8
upadte new radio-area map for エフエム佐賀 エフエム徳島
sync radiko android version code to 7.2.9
-
version 0.2.5.7
upadte new radio-area map for エフエム秋田、Rhythm Station エフエム山形、FM岡山、エフエム山陰、エフエム宮崎
change some radio's name
-
version 0.2.5.6
upadte new radio-area map for HI-SIX(エフエム高知)
sync radiko android version code to 7.2.0
-
version 0.2.5.5
fix compatible problem for Chrome 72 -
-
version 0.2.5.4
fix cors issue for Chrome 76 +
sync radiko android version code to 7.1.1
-
version 0.2.5.3
remove alert to avoid stuck in Chrome on Windows
sync radiko android version code to 7.0.6
-
version 0.2.5.2
make extension work under incognito mode
sync radiko android version code to 6.4.4
fix download blob file problem in new version firefox
-
version 0.2.5.1
dirty fix for live recording issue caused by radiko using new
rpaa
api for stream. (May encounter unexpected problem.Issues are welcomed.) -
version 0.2.5
fix error caused by radiko new type api requestheader (X-Radiko-AreaId).
solved a problem caused by CORS and Disk cache.
-
version 0.2.4.1
upadte new radio-area map for FMFUKUI(FM福井)
-
version 0.2.4
sync radiko android version code to 6.4.0
resolve 5s problem in some mediaplayer. Now aac are concated without id3 metadata.
-
version 0.2.3
fix time display in ballon when dragging in timefree, fix dragging in different timezone (Don't know if this fix works)
update gps info from radiko android DEVELOPER_MODE
-
version 0.2.2
fix timefree bypass logic.
-
version 0.2.1
Now, you can use areafree(エリアフリー) and timefree(タイムフリー) as premium(プレミアム会員) freely without any operation.
For switching to other area in timefree(タイムフリー) page, only click 地域変更 button in timefree(タイムフリー) page.
The "3 hours a day" limitation of timefree(タイムフリー) has been unblocked.You can listen no matter how long now. And also you can download timefree(タイムフリー) program.
"Choose Area" is only needed in displaying area in live(ライブ).
If there's any bug or problem ,please try to disable and then enable or reinstall it.If this does not help , please tell me via review page or github issue.
Update to the newest radio table [20180412].
-
version 0.1.4.1
bug fix: fix cookie error caused by different storage.local key name.
continously improve mobile ui
improve extension icon ui when recording
-
version 0.1.4
change to responsive ui in firefox android !
fix gps info mistake
adjust to correct japan timezone via moment-timezone
-
version 0.1.3
experimentally support recording radio. [Caution: this would cause slowing down popup page and increasing cpu usage if recording too long. No more than 30 minutes is recommended.]
-
version 0.1.2
fix bug in firefox
-
version 0.1.1
support firefox for android
-
version 0.1
initial version
-
firefox latest
-
chrome latest
-
chromium latest
-
yandex browser latest
-
firefox for android latest
-
kiwi browser for android
- The timeshift program can not be played after downloading without force refresh ,becuase of a problem of xhr access-control with disk cache see :https://lists.w3.org/Archives/Public/www-archive/2017Aug/0000.html (solved by add Access-Control-Allow-Origin in response via extension or see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin CORS and caching ->set Vary: Origin in response?)
- Failed to download recorded on firefox nightly and firefox for android nightly
- Drag issue with timezone in timefree mode. (1.Always play the start part Wherever you drag 2.Cannot drag over time after localtime now) .The second problem may be caused by radiko which only aims atjapan user not handling timezone problem . (solved)
- Timefree only plays 5 seconds. (Don't know whether this is my issue or radiko's ,update :solved)
An overseas fan of Kalafina wanted to listen to the radio program 'Kalafina倶楽部 ' which was ended a few days after this extension have been developed.
-
How it works?
The authentication of pc(html5) version radkio validates user's location via ip address.
However the android version of radkio validates user via geolocation provided by GPS(if possible),not via user's ip.
So why don't we use the authentication method of android version in pc to bypass ip check?
The authentication includes two step:
-
auth1
request : platform_info , user_id
response : a token to be valid, full_key_offset ,partial_key_length
-
auth2
request: token ,platform_info ,user_id, a parital key generated by full key and offset , connection type (in android), gps location(in android)
response: Your location (and your token is valid for only this location) / OUT
In the pc version,the full key is simplely placed in the javascript code in
apps/js/playerCommon.js
:player = new RadikoJSPlayer($audio[0], 'pc_html5', 'bcd151073c03b352e1ef2fd66c32209da9ca0afa' /*full key*/ ...
However the android version's full key is protected by native dynamic librarys.Obviously the key is much longer than that in pc version.
-
-
But how do you generate the partialkey/how do you get fullkey?
By reversing android dynamic library,You can get the fullkey from .data segment after bypassing the root check ,emulator check and lots of anti-debugging tricks and waiting for itself to repair the .data segment.
- HLS(HTTP Live Streaming) using Packed Audio see : https://tools.ietf.org/html/draft-pantos-http-live-streaming-23 which is ID3 tag + audio sample(AAC_ADTS,MP3,AC3)
- About com.apple.streaming.transportStreamTimestamp ? Could i use this to sort?(yes) PTS -> (stamp2 - stamp1) / (90*1000.0) https://blog.csdn.net/qq_32430349/article/details/50218317
- Drop all ID3 tag? see id3 in hls :https://helpx.adobe.com/adobe-media-server/dev/timed-metadata-hls-hds-streams.html
- ID3 header -> size PRIV Frame header (PRIV size flag) -> identi end with \x00 64bit data (31bit 0 and 33bit data bigendian) frame header see http://id3.org/id3v2.4.0-structure priv see http://id3.org/id3v2.4.0-frames
-
Using ffmpeg.js (based on Emscripten:an LLVM-to-JavaScript compiler) concating ts segments to avoid 5s problem in mediaplayer.Note:size is about 13MB. (depercated : just drop id3 tags and simplely concat adts strem)
-
Fake request headers more similarly (such as remove cookies and set accept,user agent,and etc) to avoid detection (partially done) due to the limitation of extension , cannot captialize some header's key
-
Automatic switch location , no need for manually choice. (consider not supporting)
-
Add recording function? (find solution on firefox -> webRequest.filterResponseData() and localstorge/chrome.storage -> downloads.download URL.createObjectURL(BlobObject), chrome may use xhr to save data , double trafic?) the right way to download data uri https://stackoverflow.com/questions/40269862/save-data-uri-as-file-using-downloads-download-api/40279050
how to merge? (src site use hls.js to play m3u8 and aac) seems that directly concat is enough
-
Force Firefox android load web page,not app download page.(done)
-
consider generate different extension in different browser
https://stackoverflow.com/questions/45911251/what-is-the-best-way-to-create-a-cross-browser-gmail-extension https://www.smashingmagazine.com/2017/04/browser-extension-edge-chrome-firefox-opera-brave-vivaldi/
-
modify firefox android page to responsive page. (partially done)
-
break the time limitation of timeshift and be able to download timeshift content (done)