<commit_before>// ==UserScript==
// @name         SideTube
// @namespace    dairful
// @version      0.0.3
// @description  Reorder content panels and resize panels into a scrollable panel
// @author       Dairful
// @include      *://www.youtube.com/*
// @grant        none
// @require      http://code.jquery.com/jquery-latest.js
// @downloadURL  https://github.com/Dairful/SideTube/raw/master/SideTube.user.js
// @noframes
// ==/UserScript==

function main(){
    
	// Check if current page is a video page
    if($("#page").hasClass("watch")){
        var $upnext = $("#watch7-sidebar-contents");
        var $comments = $("#watch-discussion");
        var $description = $("#action-panel-details");
        
		// Reorder content panels
        $upnext.before($comments);
        $comments.after($upnext);
        $upnext.after($comments);
        
		// CSS modifications (could be put in CSS using Stylish instead)
        $upnext.css({"height":"auto", 
                     "min-height":"153px", 
                     "max-height":"153px", 
                     "overflow":"auto"});
        $comments.css({"height":"auto", 
                       "max-height":"550px", 
                       "overflow":"auto", 
                       "overflow-x":"hidden"});
        $description.css({"height":"auto", 
                          "max-height":"550px", 
                          "overflow":"auto"});
		
        // Prevent page scroll when textbox scrolls to bottom
        $upnext.bind( 'mousewheel DOMMouseScroll', function ( e ) {
            var e0 = e.originalEvent,
                delta = e0.wheelDelta || -e0.detail;

            this.scrollTop += ( delta < 0 ? 1 : -1 ) * 30;
            e.preventDefault();
        });
        $comments.bind( 'mousewheel DOMMouseScroll', function ( e ) {
            var e0 = e.originalEvent,
                delta = e0.wheelDelta || -e0.detail;

            this.scrollTop += ( delta < 0 ? 1 : -1 ) * 30;
            e.preventDefault();
        });

	}

}

main();
$(document).on("spfdone", main);
<commit_msg>Test branch<commit_after>// ==UserScript==
// @name         SideTube
// @namespace    dairful
// @version      0.0.3
// @description  Reorder content panels and resize panels into a scrollable panel
// @author       Dairful
// @include      *://www.youtube.com/*
// @grant        none
// @require      http://code.jquery.com/jquery-latest.js
// @downloadURL  https://github.com/Dairful/SideTube/raw/master/SideTube.user.js
// @noframes
// ==/UserScript==

function main(){
    
	// Check if current page is a video page
    if($("#page").hasClass("watch")){
        var $upnext = $("#watch7-sidebar-contents");
        var $comments = $("#watch-discussion");
        var $description = $("#action-panel-details");
        
		// Reorder content panels
        $upnext.before($comments);
        $comments.after($upnext);
        $upnext.after($comments);
        
		// CSS modifications (could be put in CSS using Stylish instead)
        $upnext.css({"height":"auto", 
                     "min-height":"153px", 
                     "max-height":"153px", 
                     "overflow":"auto"});
        $comments.css({"height":"auto", 
                       "max-height":"550px", 
                       "overflow":"auto", 
                       "overflow-x":"hidden"});
        $description.css({"height":"auto", 
                          "max-height":"550px", 
                          "overflow":"auto"});
		
        // Prevent page scroll when textbox scrolls to bottom
        $upnext.bind( 'mousewheel DOMMouseScroll', function ( e ) {
            var e0 = e.originalEvent,
                delta = e0.wheelDelta || -e0.detail;

            this.scrollTop += ( delta < 0 ? 1 : -1 ) * 30;
            e.preventDefault();
        });
        $comments.bind( 'mousewheel DOMMouseScroll', function ( e ) {
            var e0 = e.originalEvent,
                delta = e0.wheelDelta || -e0.detail;

            this.scrollTop += ( delta < 0 ? 1 : -1 ) * 30;
            e.preventDefault();
        });

	}

}
//main
main();
$(document).on("spfdone", main);

{'fraction_non_alphanumeric': 0.1604459524963645, 'fraction_numerical': 0.015511391177896268, 'mean_word_length': 1.725891677675033, 'pattern_counts': {'":': 22, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6670157', 'n_tokens_mistral': 1228, 'n_tokens_neox': 1137, 'n_words': 252}