diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index 52583ed31..5c81fea31 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -4652,9 +4652,8 @@ name: "soundcloud" }); $.ajax("//soundcloud.com/oembed?show_artwork=false&&maxwidth=500px&show_comments=false&format=json&url=https://www.soundcloud.com/" + a.dataset.uid, { - div: div, onloadend: function() { - return this.div.innerHTML = JSON.parse(this.responseText).html; + return div.innerHTML = JSON.parse(this.responseText).html; } }, false); return div; diff --git a/builds/crx/script.js b/builds/crx/script.js index da265f148..78397cd07 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -4657,9 +4657,8 @@ name: "soundcloud" }); $.ajax("//soundcloud.com/oembed?show_artwork=false&&maxwidth=500px&show_comments=false&format=json&url=https://www.soundcloud.com/" + a.dataset.uid, { - div: div, onloadend: function() { - return this.div.innerHTML = JSON.parse(this.responseText).html; + return div.innerHTML = JSON.parse(this.responseText).html; } }, false); return div; diff --git a/src/Linkification/Linkify.coffee b/src/Linkification/Linkify.coffee index acef93011..109ff8d8b 100644 --- a/src/Linkification/Linkify.coffee +++ b/src/Linkification/Linkify.coffee @@ -295,9 +295,8 @@ Linkify = name: "soundcloud" $.ajax( "//soundcloud.com/oembed?show_artwork=false&&maxwidth=500px&show_comments=false&format=json&url=https://www.soundcloud.com/#{a.dataset.uid}" - div: div onloadend: -> - @div.innerHTML = JSON.parse(@responseText).html + div.innerHTML = JSON.parse(@responseText).html false) div title: