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.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

You will need to install an extension such as Tampermonkey to install this script.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

You will need to install an extension such as Tampermonkey to install this script.

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

Δημιουργός
Dummy_mole
Ημερήσιες εγκαταστάσεις
1
Σύνολο εγκαταστάσεων
283
Βαθμολογίες
0 0 0
Έκδοση
1.1.9
Δημιουργήθηκε την
10/05/2024
Ενημερώθηκε την
12/07/2024
Μέγεθος
50 KB
Άδεια
GNU GPLv3
Εφαρμόζεται σε

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

! - By default, "Auto sort files", "Mark viewed files" are disabled. "Display files size" is enabled, "File viewing method" is set to "new tab". A sort-by-size button will be added at the end of the left sidebar and files will open in a new tab.

Script configuration panel options:

You can set your preferences 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.


1 - "Auto sort files": Automatically sort files if you don't want to do it yourself by clicking on the sort button.

2 - “Display files size”: File sizes will be displayed below their title.

3 - “Mark viewed files”: Adds a blue border around the clicked file.

4 - “File viewing method”, Options are :

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.

Also, if "File viewing method" is set to "modal", the file will be displayed in a modal window, except in the specific cases listed below:

- file's mime-type is not readable.
- file has "Hotlink protection enabled".
- file is "Unavailable for legal reasons".
- file is no longer available.
- file is readable, but the browser indicates that it may not be.

so in all this cases, instead of the modal window, the file will be open in a new tab.

PS : Any suggestions or bug reports are welcome.

Enjoy !