Erogedownload link scrapper

Scrape free download links from Erogedownload and put them into your clipboard

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το 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.

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

// ==UserScript==
// @name         Erogedownload link scrapper
// @namespace    https://greasyfork.org/en/users/381705-takase1121
// @version      1.0
// @description  Scrape free download links from Erogedownload and put them into your clipboard
// @author       Takase
// @match        *://erogedownload.com/downloads/*
// @grant      GM_registerMenuCommand
// @grant      GM_setClipboard
// @grant      GM_notification
// ==/UserScript==

(function() {
    'use strict';
    GM_registerMenuCommand('Copy links to clipboard', function() {
        // select the proper download div
        var links = Array.prototype.slice.call(document.querySelector('div[data-title="Free download"]').children);
        var filteredLinks = [];
        for (var i = 0; i < links.length; i++) {
            if (links[i].nodeName !== 'A') continue;
            filteredLinks.push(links[i].href);
        }
        GM_setClipboard(filteredLinks.join('\n'), 'text');
        GM_notification(filteredLinks.length + ' link' + (links.length > 1 ? 's are' : ' is') + ' copied to clipboard', 'Links copied to clipboard');
    })
})();