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

Отзыв: Хороший — скрипт работает как нужно

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Автор
§
Создано: 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.

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.

Ответить

Войдите, чтобы ответить.