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.

這裡只顯示彼此間有代碼差異的版本。 顯示所有版本。

  • v1.1.9 2024-07-12

    1.1.9

    - undo last changes. I need larger samples to test the last cases of a broken file. On version 1.18 some files could actually be read when others fulfilling the same conditions really couldn't (mime-type or something else). So in the meantime, everything's back as before, allowing more videos to be played, but some will appear as broken in the modal until I find out more about the reasons for this error.

  • v1.1.8 2024-07-10

    v1.1.8

    - added an additional condition to check whether the media is readable or not. Useful when everything looks good but we still get a "No video with supported format and MIME type found" error message in the modal window. In this case, files will open in a new tab, as pixeldrain does by default.

  • v1.1.7 2024-06-03

    v1.1.7

    - minor tweaks

  • v1.1.6 2024-06-02

    v1.1.6

    - code refactoring
    - removed unused script @match rule
    - hashchange event listener has been added to handle the case where “File viewing method” is set to “default”
    so, now, the script will re-run some functions when the gallery return, in the same way as for the other viewing methods

  • v1.1.5 2024-05-28

    v1.1.5

    - wrapped some part of code in a window load event listener to ensure that it is not executed too early, especially when dealing with large nodelists.
    - added new download animations to the button when clicked.

  • v1.1.4 2024-05-14

    v1.1.4

    File viewing method, changes are as follows:

    - In some specific cases, files cannot not be played or displayed in the modal. These cases are:

    - file's mime-type is not readable.
    - file has "Hotlink protection enabled".
    - file is "Unavailable for legal reasons".
    - file is no longer available.

    So, to handle theses cases, mime-types array has been added to compare the mime-type.
    For the other cases listed above, a fetching API to get file details will be performed to find out if anything is wrong, and if so, the files will open in a new tab instead of displaying a broken file in the modal window.


    - Auto sort files options has been added to the script control panel
    - data-type attribute is now added to the files.
    - modification of the modal window closing condition: before, in Chromium browsers, the modal window would close when the video was clicked, for example (should be fixed now).
    - Some unused variables has been removed

  • v1.1.3 2024-05-12

    v1.1.3

    - minified css
    - script icon added
    - function declarations changed to function expressions
    - semicolons added everywhere
    - comments added to some parts of the code

  • v1.1.2 2024-05-12

    v1.1.2 : improvement in the way files are handled by the modal: video, audio and image files are now correctly displayed in the modal, any other type of file will not generate a modal but will be downloaded directly when clicked.

  • v1.1.1 2024-05-11
  • v1.1.0 2024-05-11
  • v1.0 2024-05-10

QingJ © 2025

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