Export & Share Multireddit

share and export multi-reddit to everyone including mobile users.

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

You will need to install an extension such as Tampermonkey to install this script.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

You will need to install an extension such as Tampermonkey to install this script.

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

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.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==UserScript==
// @name         Export & Share Multireddit
// @namespace    https://github.com/bnkrr/multireddit_export
// @version      0.1
// @description  share and export multi-reddit to everyone including mobile users.
// @author       Bnkr
// @supportURL   https://github.com/bnkrr/multireddit_export
// @match        https://www.reddit.com/*/m/*/
// @grant        none
// ==/UserScript==

(function() {
    var subreddits = [];
    $('.subreddits').children('li').children('a').each(function() {
        var rname = this.href.split('/').pop();
        subreddits.push(rname);
    });
    var url = 'https://www.reddit.com/r/'+subreddits.join('+')+'/';
    $('h1.redditname a').after('  <a href="' + url + '">[ext_url]</a>');
})();