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

< Feedback on AO3: Jump to a Random Work

Review: Good - script works

§
Posted: 23-02-2023

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!

escctrlTác giả
§
Posted: 10-06-2023

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.

§
Posted: 10-07-2023

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.

Post reply

Đăng nhập để bình luận