Greasy Fork is available in English.

AO3: Jump to a Random Work

adds a "Random Work" button (top right corner) when viewing works in a tag/filter or your Marked For Later list

< 腳本AO3: Jump to a Random Work的回應

評論:正評 - 腳本一切正常

§
發表於:2023-02-23

Works great, thank you! My only question is do you know if there's a way to open the random fic in a new tab? Honestly having the random fic open from my marked for later does probably stop me for scrolling endlessly, but I'm still curious. Loved your comments and documentation in the code!

escctrl作者
§
發表於:2023-06-10

thanks ♥
if you want it to open in a new tab, you can replace the line window.location.assign(path); on line 71 with window.open(path, '_blank').focus();
fair warning, it might trigger your popup blocker or try to open in a new browser window instead of a tab. that's all down to browser behavior. for me (in Firefox on desktop) this worked, though.

§
發表於:2023-07-10

Thank you! Ngl I didn't even realise this was responding to my own comment. I'm also using Firefox on desktop, but we'll see how it works on the Kiwi browser on mobile.

發表回覆

登入以回復