Closed ErinSteph closed 11 years ago
Should be possible. Just the event with nothing passed, right?
That would be perfect, thanks c:
Why?
I have a script that modifies posts on page, this became something I'd use at first when I added a function that turns names into uniquely colored capcodes, but I'd use it for a lot more now. Basically, the way I was doing it, was looping every 2 seconds to check if names had been updated and rerunning the function if so, it would be much easier if I could just have it listen for namesync pushing an event and updating then.
Alright.
awesome, thank you!
For use:
document.addEventListener('NamesSynced', function() {
// Magic happens
});
you're amazing, thank you so much ♥
I though I'd best make this as an issue rather than a pull request because I'm not great with this stuff, and in every likelyhood it probably already does something like this I haven't noticed, I'm sorry if I'm killing github etiquette or anything. Could we have so it triggers an event on sync? Maybe $(document).trigger('namesSynced'); or something, something for other scripts to listen for after names are updated. Somewhat like how with 4chan X we can add an event listener for 'ThreadUpdate' to trigger things when new posts are appended.