Skip to content

Instantly share code, notes, and snippets.

View tmatzxzone's full-sized avatar
:octocat:
Kluless

TmatzXzonEv tmatzxzone

:octocat:
Kluless
View GitHub Profile
@tmatzxzone
tmatzxzone / pixeldrain.js
Last active April 13, 2024 01:33
Tampermonkey script to convert folder url to single url
// ==UserScript==
// @name Convert pixeldrain Folder link to Single Link
// @namespace http://tampermonkey.net/
// @match https://pixeldrain.com/l/*
// @grant none
// @version 1.0
// @author TmatzXzonEv
// ==/UserScript==
(function() {
'use strict';
@tmatzxzone
tmatzxzone / pixeldrain.js
Created March 20, 2024 19:57
Convert Pixeldrain Folder Link to Single link using browser console
// Extract file IDs and construct single URLs
const fileData = window.viewer_data.api_response.files;
const singleUrls = fileData.map(file => `https://pixeldrain.com/u/${file.id}`);
// Construct log message
const logMessage = ["Single URLs:"];
singleUrls.forEach(url => logMessage.push(url));
// Create a Blob containing the log message
const blob = new Blob([logMessage.join("\n")], { type: "text/plain" });