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.

发布留言

登录(不可用)以发布留言。

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址