Last active
October 12, 2017 15:34
-
-
Save seadog007/4bb595d7ea02f5c409e3d761a0d6151e to your computer and use it in GitHub Desktop.
Plurk changing nick name event script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var re = /alt="\(dice20\)"\ rndnum="2"\ \/><[^>]alt="\(dice20\)"\ rndnum="20"\ \/><[^>]*alt="\(bzzz\)"\ rndnum="4"/; | |
var plurk_id = 1358061688; | |
var plurk_owner_id = 9194929; | |
var timer = setInterval(function(){ | |
var rnd = (new Date().getTime()); | |
var content = rnd + '\n(dice20)(dice20)(bzzz)'.repeat(10); | |
jQuery.post("/Responses/add", {qualifier: ':', content: content, p_uid: plurk_owner_id, plurk_id: plurk_id, lang: 'tr_ch', uid: SiteState.getSessionUser().id}, function(data){ | |
m = re.exec(data.object.content); | |
if(m !== null){ | |
console.log('Got it'); | |
clearInterval(timer); | |
} | |
}); | |
}, 1000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment