Greasy Fork is available in English.

Diskusie » Vývoj

Script Stopped Working After Site Change - Help

§
Pridaný: 14.02.2017
Upravený: 14.02.2017

Script Stopped Working After Site Change - Help

Hello Everyone,

I just can not figure this out. I was using this script for a year and after an update I'm lost. It seems they may have added some auth method I am not aware of. Previously the script would simulate button clicks on all the "follow" btns. HELP :)

// ==UserScript==
// @Name poshmark auto-follower
// @namespace poshmark_follower
// @include https://poshmark.com/user/*/followers
// @VeRSioN 1
// @Grant none
// ==/UserScript==

function followEveryone () {
$('a[track_action="follow"]:visible').click();

}

(function($) {

var origAppend = $.fn.append;


$.fn.append = function () {

return origAppend.apply(this, arguments).trigger("append");

};
§
Pridaný: 15.02.2017
Upravený: 15.02.2017

You can find info here:
Clicking a button on a page using a Greasemonkey/userscript in Chrome

And see:
waitForKeyElements.js . A utility function, for Greasemonkey scripts, that detects and handles AJAXed content.

I am not coder and i write something useful with it....

Ps : For more help, maybe you can edit your question's Title by adding something like:
"simulate button clicks on all the "follow" btns."

Pridať odpoveď

Aby ste mohli pridať odpoveď, prihláste sa.