Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // PRELIMINARY STEPS
- //
- // 1. Install the DownThemAll! extension (DTA) by Nils Maier for your browser.
- //
- // 2. Under DTA's Network preferences, add a new limitation for domain 'groupees.com' with "Concurrent Connections"
- // set to 1. This can greatly reduce chances of failed downloads.
- //
- // 3. Optionally, temporarily change your browser's download location to where you wish to deposit your files.
- //
- // 4. Turn off your browser's inquiry where to save each downloaded file as DTA may use that setting as well.
- //
- // 5. Make sure your clipboard is free for use.
- //
- //
- // USAGE
- //
- // 1. Navigate to https://groupees.com/purchases
- //
- // 2. Open the browser's Developer Tools (press F12).
- //
- // 3. Paste the script below in the Console.
- //
- // 4. Open up any bundle you wish to download.
- // Make sure all desired items in the bundle are revealed.
- //
- // 5. You can now [Ctrl] + Right Click anywhere in the opened bundle to trigger the script, which will do 2 things:
- // - It will select all contents in that bundle.
- // Note that you can always make custom selections as well, and work your way through bundles in parts.
- // - It will copy the date & title of the bundle to the clipboard, formatted as "YYYYMMDD TITLE".
- // Feel free to modify the script to change the format to your liking.
- //
- // 6. In the context menu that popped up, you can directly choose "DownThemAll! -> Save Selection with DownThemAll!".
- //
- // 7. The DTA downloads screen pops up.
- // - Make sure you're on the Links tab (first tab).
- // - In field "Fast Filtering", enter "https://storage.groupees.com/". This will filter out everything but
- // the actual files to download.
- // - Tweak the current selection further if needed. Each URL also hints what kind of file it will be:
- // https://storage.groupees.com/albums/... for music,
- // https://storage.groupees.com/games/... for games,
- // https://storage.groupees.com/other_products/... for comics, ebooks, videos, licenses, etc.
- // - In field "Subfolder", paste your clipboard. This will populate the field with the date & title of the bundle.
- // - Hit "Download" or "Add paused".
- //
- // 8. Let the manager run through its queue.
- //
- //
- // SCRIPT
- //
- const months = ['!', 'JANUARY', 'FEBRUARY', 'MARCH', 'APRIL', 'MAY', 'JUNE', 'JULY', 'AUGUST', 'SEPTEMBER', 'OCTOBER', 'NOVEMBER', 'DECEMBER'];
- document.querySelector('#profile_content').addEventListener('auxclick', event => {
- const item = event.target.closest('.profile-item');
- if (item && event.ctrlKey) {
- const title = item.querySelector('.caption').textContent;
- const date = [...item.querySelector('.info').childNodes].pop().textContent;
- const [, month, day, year] = date.match(/\s*on\s*(\w+) (\d+), (\d+)\s*/);
- const clipboardText = `${year}${months.indexOf(month.toUpperCase()).toString().padStart(2, '0')}${day.padStart(2, '0')} ${title}`;
- navigator.clipboard.writeText(clipboardText).then(
- () => console.info(`Item:`, item, `\nCopied to clipboard: "${clipboardText}"`),
- () => console.warn(`Item:`, item, `\nFailed to copy to clipboard: "${clipboardText}"`)
- );
- document.getSelection().selectAllChildren(item);
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment