NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name BOT LinkedIn Analytics10 // @namespace https://openuserjs.org/users/juan.herrera // @version 1.3.3 // @description Este BOT ordena las publicaciones y les da like a todas desde el origen de los tiempos, además de compartirlas // @author juan.herrera // @match https://www.tampermonkey.net/index.php?version=4.9&ext=dhdg&updated=true // @include https://www.linkedin.com/company/analytics-10/* // @grant none // @require http://code.jquery.com/jquery-3.4.1.min.js // @license MIT // ==/UserScript== var v = '1.3' if(sessionStorage.getItem(v) !== 1) { window.alert( "Esta es una versión nueva \n"+ "Asegúrate de haber leído el manual de usuario \n"+ "https://docs.google.com/document/d/1ER8ikytknDjm9cExYREGErmLICoZhbDX" ) sessionStorage.setItem(v, 1); } var node = document.createElement("div"); node.innerHTML = '<div style="z-index:9999998;position:fixed;bottom:50px;right:20px;border:solid 1px black;font-size:15px;">'+ '<table style="border:solid 1px black;background-color:white;">'+ '<thead style="background-color:#052C40;color:white;">'+ '<tr><th>'+ '<b>Analytics10 Bot<b>'+ '</th></tr>'+ '<thead>'+ '<tbody>'+ '<tr>'+ '<td>'+ '<b>Recomendar: <b>'+ '</td>'+ '<td>'+ '<input type="checkbox" id="recomendar" checked>'+ '</td>'+ '</tr>'+ '<tr><td>'+ '<b>Compartir: <b>'+ '</td></tr>'+ '<tr><td>'+ '<center><button z-index="9999999" type="button" onclick="scroll_last($)">Click Me!</button><center>' '</td></tr>'+ '</tbody>'+ '<table>'+ '</div>'; document.getElementsByTagName('html')[0].appendChild(node); function sleep(ms) { return new Promise(resolve => setTimeout(resolve, ms)); } async function scroll_last($, anterior = 0, counter = 0) { var aux = document.body.scrollHeight; if(anterior != aux) { window.scrollTo(0,aux); await sleep(random_number(5474.66658, 7552.13324)); if(counter == 0) { $(".sort-dropdown__list").get(0).querySelectorAll("button")[1].click(); } scroll_last($, aux, 1); } else { recomendar_compartir($); } } function random_number(min, max) //numero random x Tomás { return Math.random() * (max - min) + min; } function recomendar_compartir($) { var j = 0; var buttons = document.querySelectorAll("button[aria-label='Recomendar'][aria-pressed='false']"); for (var i = buttons.length - 1; i >= 0; i--) { setTimeout(function(i, j){ var recomend_id = buttons[i].id; $('#'+recomend_id).click(); var share_id = 'ember'+(Number(recomend_id.replace('ember','')) + 5); $('#'+share_id).click(); setTimeout(function(j){ var publish_id = document.querySelectorAll("button[data-control-name='share.post']")[0].id; $('#'+publish_id).click(); }.bind(this, j), random_number(4955.56161, 6664.65484)*(j+1)); //random clic en compartir }.bind(this, i, j), random_number(11545.63222, 14588.44758)*j); //random clic en recomendar j++; } setTimeout(function(j){ location.reload(); }.bind(this, j), random_number(61452.63222, 81336.44758)*(j+1)); //random recarga de página }