Skip to content
This repository has been archived by the owner on May 30, 2021. It is now read-only.

Commit

Permalink
New fix for the bottom white rectangle
Browse files Browse the repository at this point in the history
For some reason the script didn't work as well as it did as an userscript, this should fix it here.
  • Loading branch information
Felizolinha committed Jan 28, 2015
1 parent 745a082 commit 67b58bc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion parts/profileenhancer.part.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,10 @@ msuParts["profileEnhancer"] = function (ScratchUserscript) {
$(this).attr('src', 'http://phosphorus.github.io/app.html?id=' + projID);
}
else if($(this).attr('src').indexOf('http://scratch.mit.edu/projects/embed/') > -1) {
setTimeout(function(){$('.stage iframe').attr('height', '238');}, 200);
setInterval(function(){
$('.stage iframe').attr('height', '239');
$('.stage iframe').attr('height', '238');
}, 500);
}
});
$('.stage iframe').attr("src", "http://scratch.mit.edu/projects/embed/" + projID + "/?autostart=true");
Expand Down

0 comments on commit 67b58bc

Please sign in to comment.