pixeldrain improved (sort by size, markers and modal)

Improves the user experience on pixeldrain by adding a sort by size button, markers on viewed files and file playback in a modal window.

As of 2024-05-11. See the latest version.

نووسەر
Dummy_mole
Ratings
0 0 0
وەشان
1.1.1
Created
2024-05-10
Updated
2024-05-11
Size
39.3 KB
مۆڵەت
GNU GPLv3
Applies to

Improves the user experience on pixeldrain by adding a sort by size button, markers on viewed files and file playback in a modal window.

1 - By default, file sizes will be displayed below their title, and a sort-by-size button will be added at the end of the left sidebar.

2 - “Mark viewed files” option is disabled by default, but you can enable it by clicking on the script manager icon (tampermonkey, violenmonkey etc...), then under the name of the pixeldrain script you'll see “pixeldrain configuration”, click on it, a configuration panel will open, from here you can enable and/or choose the options that suit you.

Options are :

a) Display files size : display or not the size of files under their title.
b) Mark viewed files : adds a blue border to clicked files.
c) File viewing method :

default : this is pixeldrain's native behavior: when you click on a file, you're redirected to the file's page for viewing and/or downloading.
new tab : the album page remains open and files open in a new tab when clicked on.
modal : files are displayed or played in a modal window and a download button is available below the modal window.

Important !

if the “File viewing method” option is set to default, when you are redirected to the single file page and press the back button to return to the album page, the script will not be executed again, which means that nothing mentioned above will work/be active. This is why I recommend not setting the “File viewing method” option to “default”.

PS : Any constructive advice or bug reports are welcome, as a beginner everything is good to take.

Enjoy !

长期地址
遇到问题?请前往 GitHub 提 Issues。