Greasy Fork is available in English.

Discussions » Creation Requests

Can someone help with this script

§
Posted: 21-10-2017
Edited: 21-10-2017

Can someone help with this script

So, i tried to modify this userscript https://greasyfork.org/en/scripts/10045-tumblr-followr/code

i want to choose from Notes what to follow, can someone please help me, i want Follow Buttons here



and when you scroll and the list is loading more the buttons to be added too

if this is hard it's not for free, thank you.

§
Posted: 21-10-2017

i've done the begin of code, a dirty one i think, but i can't put those buttons on loading notes if i scroll them


$(document).ready(function() {
$(".rollup-notes-summary").click(function(t) {
$(document).ready(function() {
setTimeout(function() {
//setInterval(function() {
var myobj = document.getElementsByClassName("note-text-link");
for (var i = 0; i < myobj.length; i++) {
var nume = myobj[i].innerText;
console.log(nume);
var href = myobj[i].href;
console.log(href);
var blog = myobj[i].insertAdjacentHTML( 'afterend', '');
}
//}, 3000);

}, 2000);
});
});
});

Post reply

تسجيل الدخول إلى مرحلة ما بعد الرد.