Pixeldrain DL Bypass

Adds direct-download buttons and links for Pixeldrain files using an alternate proxy — inspired by 'Pixeldrain Download Bypass' by hhoneeyy and MegaLime0

当前为 2025-10-06 提交的版本,查看 最新版本

这些是此脚本变更过代码的版本。 显示所有版本。

  • v1.5.6b 2025-11-01

    feat: Add ZIP download for single files and button label refinements

    • feat(file): Add buttons and logic to download a single file as a ZIP archive via proxy (download, copy URL, show URLs, send to JDownloader).
    • fix(ui): Hide ZIP-related buttons for single files if the file is not a ZIP.
    • style(ui): Refine button labels in handleFileList to be more concise (e.g., "DL Selected" to "DL (Sel.)").
    • style(modal): Update modal content alignment CSS to remove centering.
    • chore(commands): Reorder CONFIG.COMMANDS to prioritize directDownload.
    • chore(metadata): Update script version from 1.5.6ab to 1.5.6b.
  • v1.5.6ab 2025-10-31

    feat: Add download as ZIP option for file lists and expand domain matching

    • feat(list): Add buttons and logic to download file list as a ZIP archive via proxy (direct download, copy URL, send to JDownloader).
    • refactor: Extract repeated clipboard logic to a new copyURL helper function.
    • refactor: Add a getSelectedFile helper function for file list logic.
    • chore(metadata): Expand @match metadata to include https://pixeldrain.dev/* and https://pixeldra.in/*.
    • chore: Update script version from 1.5.6aa to 1.5.6ab.
  • v1.5.6aa 2025-10-31

    refactor(media): Improve video player bypass and fix JDownloader issues

    • feat: Add bypass for login/account restriction on the video player, allowing video display for logged-out users (via modAllowPlayer).
    • refactor(media): Refactor the proxy media loading logic, moving it to separate functions and using a more granular MutationObserver (with CONFIG.ON_ELEMENTS) for better maintainability.
    • fix(jdownloader): Correct URL submission to JDownloader to ensure the final URL (after proxy redirection) is sent, improving download reliability.
    • fix(jdownloader): Add timeout to GM_xmlhttpRequest when fetching the final URL to prevent long interface blocking.
    • refactor(dom): Update DOM insertion methods (from insertAdjacentElement to .after()) to use more modern syntax.
    • chore: Update script version from 1.5.6a to 1.5.6aa.
  • v1.5.6a 2025-10-25

    feat: add proxy media loading and refactor config/commands system

    • Added "Load media files with proxy" feature (auto rewrites
    • Introduced CONFIG.commands system replacing preferences (centralized GM_registerMenuCommand management)
    • Replaced PDLB_CONFIG with CONFIG for cleaner structure
    • Added MutationObserver for live DOM proxy patching (initMediaWithProxy)
    • Added @run-at document-start for early execution
    • Updated downloadFile() to append ?download when directDownload is active
    • Merged init() and initOnDOM() flow for better load timing control
    • Bumped version to 1.5.6a
  • v1.5.5 2025-10-23

    fix: unify copy function and fix single-file URL copy behavior

    • Replaced copyAllBypassURL() with copyBypassURL()
    • Ensures single-file copy now copies full URL, not just ID
    • Simplified multi-file support using same unified function
    • Bumped version to 1.5.5
  • v1.5.4 2025-10-23

    refactor(ui): polish layout, shorten labels, and improve JDownloader integration

    • Updated toolbar button labels for clarity and brevity (e.g., “Download all” → “DL All”)
    • Improved layout of toolbar buttons and spacing with extra separators
    • Enhanced JDownloader button visibility and naming consistency
    • Refined CSS rules to ensure cleaner UI rendering
    • Increased version from 1.5.3 to 1.5.4
  • v1.5.3 2025-10-23

    feat: add "copy all bypass URLs" feature and improve button ordering

    • Added support for copying all bypass URLs at once via new copyAllBypassURL function
    • Unified URL copy logic to handle both single and multiple files
    • Adjusted button insertion order for better UI consistency
    • Minor refactor in handleSingleFile and handleFileList for clarity
    • Bumped version to 1.5.3
  • v1.5.2 2025-10-12

    fix: Handle massive download error more gracefully

    Adds a check in the massiveDownload function to display a server message if a file is not available.

  • v1.5.1 2025-10-12

    fix(list): Skip unavailable files during iteration

    Corrects a bug in handleFileList where return was used instead of continue inside the loop. Previously, the function would stop processing the entire file list as soon as it encountered an unavailable file. This change ensures that only the unavailable file is skipped and the iteration continues, allowing the processing of subsequent files in the list.

  • v1.5.0 2025-10-09

    feat: Add direct download and open buttons

    • A new directDownload preference has been added.
    • A new openBypassURL function was created to directly open the bypass URL in a new tab.
    • An "Open bypass" button has been added to both single file and file list pages for this new functionality.
    • The JDownloader integration has been refactored to use the /flash/addcnl endpoint, which don't need allow for adding links.
    • The getFinalURL function now strips the "?download" query parameter from the URL, which was causing issues with JDownloader.
    • The createButton and showModal functions were refactored to use the document.createElement("template") method, avoiding direct innerHTML manipulation on the main document.
    • The init function now uses optional chaining ?. when calling preference effects, preventing errors if an effect is not defined.

    refactor: Improve list handling and code readability

    • The file list processing now uses a single for...of loop to iterate over the files. This replaces multiple, less-efficient iterations, making the code cleaner and more performant.
    • The availableFiles array and filesLinkHTML and bypassURLS strings are now populated within this single loop.

    The version has been updated to 1.5.0.

  • v1.4.5 2025-10-08

    refactor(jdownloader): Use final URL for JDownloader integration

    • A new getFinalURL function was added to perform a GM_xmlhttpRequest with a HEAD method to get the final redirected URL.
    • The setBypassURL function was introduced to asynchronously resolve all final URLs for a list of files and store them in the file objects.
    • The "Add to JDownloader" buttons are now hidden by default and only become visible after the final URLs have been resolved.
    • The sendToJDownloader function was updated to use the resolved URLs instead of constructing them, removing the hardcoded URL and making the feature compatible with any custom proxy that performs redirection.
    • The version has been updated to 1.4.5.
  • v1.4.4 2025-10-06

    fix: Use configured proxy for JDownloader URLs

    • This commit fixes a bug where the JDownloader integration was hardcoded to use a specific proxy URL (gamedriveorg.pd28.workers.dev). The JDownloader links now correctly use the selectedProxy variable, ensuring that the feature use custom proxy setting.
    • The version has been updated to 1.4.4.
  • v1.4.3 2025-10-06

    refactor(jdownloader): Add direct JDownloader button for single files

    • The createJDownloaderForm function was refactored to handle both single files and file lists, accepting either a single object or an array of objects.
    • A new JDownloader button is now directly inserted into the toolbar on single file pages.
    • The createElementWithListener and wrapHTMLToElement functions were introduced to improve code readability and reduce duplication when creating and attaching event listeners to new DOM elements.
    • The handleFileList and handleSingleFile functions were updated to use the new helper functions for creating elements.
    • The version has been updated to 1.4.3.
  • v1.4.2 2025-10-05

    feat(ux): Add option to show scrollbar for long file names

    • A preferences object has been added to PDLB_CONFIG to manage user settings.
    • A new menu command, "Show/Hide horizontal scrollbar to container names", has been registered.
    • Users can now toggle between truncating long names (overflow: hidden) and allowing a horizontal scrollbar (overflow: scroll) for better readability of full file names.
    • The init function was updated to apply the user's preference at runtime using a loop over the new preferences object.
    • The handleFileList function now applies a new class container-names to the file list container to be styled based on the user's preference.
    • The version has been updated to 1.4.2.
  • v1.4.1 2025-10-05

    fix(ui): Fix horizontal scrollbar on modal links

    • The overflow: initial; style was added to the <pre> block to prevent this unwanted behavior.
    • The version has been updated to 1.4.1 to reflect these minor fixes.
  • v1.4 2025-10-05

    feat(ui): Add layout improvements and URL link styling

    • The handleSingleFile and handleFileList functions were updated to add a separator after the newly inserted buttons, improving the visual grouping of elements on the page.
    • CSS styles were added to truncate long file names with an ellipsis (...) within the modal, preventing overflow and improving the layout of the URL list.
    • The showModal function now includes a max-height and max-width property to ensure the modal window remains responsive and fits within the viewport.
    • The version has been updated to 1.4.
  • v1.3 2025-10-05

    feat(jdownloader): Add direct support for JDownloader

    • A createJDownloaderForm function was added to generate a hidden form that uses the JDownloader API to add files to the download list.
    • A new "Add links to JDownloader" button is now displayed in the showModal window for file lists.
    • The showModal function was refactored to accept an optional extraContent parameter, making it more flexible for displaying additional elements like the JDownloader form.
    • The createButtonHTML helper function was improved to support an optional type attribute, which is used for the new form's submit button.
    • Metadata downloadURL was removed since it is automatically generated by Greasyfork.
    • The version has been updated to 1.3.
  • v1.2 2025-10-05

    feat(config): Add custom proxy configuration via script manager's menu

    • The script now uses GM_registerMenuCommand, GM_getValue, and GM_setValue to create a menu in the Violentmonkey/Tampermonkey extension.
    • The new menu command "Set custom proxy" allows the user to input their own proxy domain, which is then saved and used for future downloads.
    • This provides more flexibility and control for users who want to use a different bypass server.
    • The code was refactored to use a PDLB_CONFIG object to manage all global configuration variables.
    • The createButtonHTML helper function was added to reduce code duplication and improve readability.
    • The version has been updated to 1.2.
  • v1.1 2025-10-05

    feat(ux): Add showModal enhancements

    • The showModal function has been enhanced to provide a more structured display of bypass URLs for file lists. It now shows both clickable links and a preformatted block of text for easy copying.

    feat: add 'Copy bypass URL' button for list view too

    • A new 'Copy bypass URL' button has been added for file list pages.
    • For file list pages, the button copies the URL of the currently selected file.
    • The CSS rule has been updated to hide the 'Copy bypass URL' button for galleries, in addition to the 'Download selected file' button.
  • v1.0 2025-10-04