r/Twitch•
Ph0X

Quick fix for the panel reorder bug

Guide

For anyone that has tried moving the panels in the past few months, you'll know all too well that it's been broken for some time now. For some reason, this breaking bug is very low on Twitch's priority and hasn't been fixed yet.

I know very little about how Twitch is coded and had to dig through minified code, but I wrote a quick fix for now. So until Twitch decides to actually repair their site, here is the code:

$.fn.oldSortable = $.fn.sortable;
$.fn.sortable = function(o){
    if (o==="cancel") return;
    var self = this;
    this.oldSortable(o);
    self.height('auto');
    setTimeout(function() {
        self.height(self.height());
    }, 100);
};

After loading your channel, simply open the browser console (ctrl+shift+j on Chrome, ctrl+shift+k on Firefox), paste the code above and press enter. You can then edit panels and move them around as usual.

It's not the cleanest fix, but it works! It might also break other parts of the site, so use it only for modifying your panels, and refresh afterwards to get rid of it.

Posted Apr 15, 2016, 1:13 AM UTC · edited

2812
Loading comments…