Soundcloud:Sort comments by timestamp

Sort comments by timestamp on Soundcloud

< 腳本Soundcloud:Sort comments by timestamp的回應

評論:普通 - 腳本能使用,但有一些問題

§
發表於:2016-08-23

Attaching to load event won't work with Soundcloud

The continuous playback SoundCloud "Next" doesn't fire any load events when navigating around the site. So the Sort comments button doesn't get appended to the DOM.

I couldn't figure out how to detect page loads through other events so I tried intercepting AJAX calls as a proxy for Hey, user navigated, new page!. Because when a track is requested there's always a responseURL like https://api-v2.soundcloud.com/tracks/270116969/blablablabla

Here's my fix with the XHR interceptor. Seems to work, try it out and implement it if it's alright.

http://pastebin.com/EDrqtB9E

adgitate作者
§
發表於:2017-02-08

Hey! Thanks for the feedback. I just now saw your comment when soundcloud broke the script (a diff part) and I had to login to greasyfork to update it. Your suggested changes make sense and are now implemented.

發表回覆

登入以回覆

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址