Answer the question
In order to leave comments, you need to log in
Follow links greasemonke. How to improve?
There is a button and its function:
/*-------------------------- ButtonCreate --------------------------*/
var input=document.createElement("input");
input.type="button";
input.value="Button";
input.onclick = minButtonC;
input.setAttribute("style", "position:absolute; float: right; right: 15px;");
input.className = "btn btn-xs btn-standart";
$('.comments-wall').before(input);
/*----- Button Click -----*/
function minButtonC()
{
var links = document.querySelectorAll('span.icon-m2'); // Ищем все ссылки с классом "icon-m2"
Array.prototype.forEach.call(links, function(e){ // Проходим все найденные ссылки
e.click(); // Кликаем!
});
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question