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 的反馈
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.
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.
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址
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!