Skip to content

Instantly share code, notes, and snippets.

@nickkkkk0703
Created October 9, 2021 01:52
Show Gist options
  • Save nickkkkk0703/5f47752ae3472ee18a341da2b372ee4f to your computer and use it in GitHub Desktop.
Save nickkkkk0703/5f47752ae3472ee18a341da2b372ee4f to your computer and use it in GitHub Desktop.
risu 影片下載
/**
* 使用步驟:
* 瀏覽器新增書籤,並在網址欄位放入以下程式碼
* 後續只要在 risu 播放影片的頁面點擊書籤即可自動下載
* 若有密碼,須先自行輸入密碼後,進入播放影片的頁面方可有效
*/
javascript: function downloadBlobs(blob){const blobUrl=new URL(blob);const url=new URL(blobUrl.pathname);const fileName=url.pathname.replace(/^\//g,"")||"video";const a=document.createElement("a");a.href=blob;a.download=`${fileName}.mp4`;a.click()}downloadBlobs(document.getElementsByTagName("video")[0].src);
@Bright01010
Copy link

為什麼我點了書籤卻沒發生任何事(手機)

@0980991742
Copy link

他說檢查網路連線但我有網路啊

@koerrrrr
Copy link

他說檢查網路連線但我有網路啊

是在Fito網站嗎? 我的也發生這種情況,發現按F12也會被強制退出,可能有保護機制吧

@erbanku
Copy link

erbanku commented Apr 30, 2024

thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment