Recos

creador de recos predeterminado para Taringa! //

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name         Recos
// @namespace    http://taringa.net/_SeRiAlKiLLeR_
// @version      0.4
// @description  creador de recos predeterminado para Taringa! // 
// @match        *://www.taringa.net/mi
//@icon          http://k33.kn3.net/taringa/1/2/3/2/9/6/48/_serialkiller_/58E.gif
// @copyright    2016, _SeRiAlKiLLeR_
// ==/UserScript==

(function() {
    var urlyboton = $('<div class="box"><div class="title clearfix"><a href="#" id="panelx"><h2>Creador de Recos</h2></a></div><div id="coindesk-widget" data-size="mpu"></div><div id="ocultarx" class="list reco"><textarea id="ID1" class="user-text" tabindex="700" placeholder="Nick del user (sin @)" autocomplete="on" style="width:260px; height: 15px; background: rgb(255, 255, 255);resize: none; "></textarea>  <input type="button" id="recos" value="Recomendar" style="height: 35px; background:white; color: #4cadfc; "/> | <input type="button" id="limpiar" value="Limpiar" style="height: 35px; background:white; color: #4cadfc; "/><br></br></div></div>');
    $('#sidebar').prepend(urlyboton);
    
    function limpiarnick() {
        var ext0 =$('#ID1');
        var lol0 ='';
        ext0.val(lol0).click().focus();
        } limpiar.onclick=limpiarnick;
    function reload() {
        var ext = $('#ID1').val ();
        var otr = ["Buen post! by ",
                   ":buenpost: por ",
                   "Excelente post! by ",
                   "",
                   "buen aporte!! ",
                   ];
        var des = [" :+1:",
                   " :v:",
                   " :D ",
                   "",
                   " :) ",
                   ];
        
var tiempo = new Date();
var ramd = Math.floor(Math.random(tiempo.getTime()) * (5 - 0)) + 0;
        var com = $('#my-shout-body-mi');
        com.val("").click().focus();
        var lol = '';
        if(com.val() != ''){
            lol += "";
        }
        lol += otr[ramd] + '@' +  ext + des[ramd] +  '\n';
        lol += '\n';
        if (ramd == 0) lol += '[[' + ext + ']]' + ' '+ '[[[' + ext + ']]]'+ ' '+ '[[' + ext + ']]'+ ' '+ '[[[' + ext + ']]]'+ ' '+'[[' + ext + ']]'+' ';
        if (ramd == 1) lol += '[[[[' + ext + ']]]]'+' ';
        if (ramd == 2) lol += '[[[[[' + ext + ']]]]]' + ' ';
        if (ramd == 3) lol += '[' + ext + ']' + ' '+ '[[' + ext + ']]'+ ' '+ '[[[' + ext + ']]]'+ ' '+ '[[[[' + ext + ']]]]'+ ' '+'[[[[[' + ext + ']]]]]'+' ';
        if (ramd == 4) lol += '[[[' + ext + ']]]' + ' '+ '[[' + ext + ']]'+ ' '+ '[' + ext + ']'+ ' '+ '[[' + ext + ']]'+ ' '+'[[[' + ext + ']]]'+' ';

        com.val(lol).click().focus();
        } recos.onclick=reload;
    
        $('#panelx').toggle(
        function(y){ 
            $('#ocultarx').slideUp();
            $('#panelx h2').html('Creador de Recos ↓');
            e.preventDefault();
        },
        function(y){ 
            $('#ocultarx').slideDown();
            $('#panelx h2').html('Creador de Recos');
            e.preventDefault();
        }
 
    );

})();