Skip to content

Instantly share code, notes, and snippets.

@angelarias
Created January 29, 2017 02:56
Show Gist options
  • Save angelarias/265840913f473dcab968637623cfcb9d to your computer and use it in GitHub Desktop.
Save angelarias/265840913f473dcab968637623cfcb9d to your computer and use it in GitHub Desktop.
Comentar el ultimo shout del mi
// ==UserScript==
// @name Coment
// @namespace https://www.taringa.net/angelandresarias
// @version 2.0
// @description Comenta el mi
// @match *://www.taringa.net/*
// @copyright Angel Arias
// @grant none
// ==/UserScript==
/*Fix jQuery*/
var mensaje1 = "Hola";
var mensaje2 = "No entiendo";
var mensaje3 = "Denunciado lince";
var mensaje4 = "Despedite de tu cuenta";
var mensaje5 = "Me parece bien";
var mensaje6 = "¿Vos decis?";
var mensaje7 = "Go to the stadium";
var mensaje8 = "Test Bot 3";
var mensaje9 = "Test Bot 4";
var mensaje10 = "Test Bot 5";
function addbtn(){
//MI T!
$('.my-shout-attach-options').append('<div class="follow-buttons" style="display:inline-block"><a original-title="Boton para el Mi" id="angel_btn" class="btn g"><div class="following-text">Coment</div></a></div>');
}
addbtn();
document.getElementById("angel_btn").addEventListener("click",clic,true);
function clic(){
// function $(selector){
// return document.querySelector(selector);
// }
// var clase = document.querySelectorAll(".ubertext-counter-shout-footer").value = mensaje1;
// var div = document.getElementById("quick-reply-79504285").value = mensaje8;
// document.getElementById("quick-reply-79510029").value = mensaje1;
// document.getElementById('quick-reply-79494483').getElementsByClassName('btn.g.floatL').click();
var bt = document.querySelector('.shout-quick-reply.form-input-text.box-shadow-soft.ubertext').value = mensaje3;
$('.btn.g.floatL').click();
console.log(bt);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment