<commit_before>// ==UserScript==
// @name Fix for #NewTwitter: Scrolling the Details Pane
// @author <NAME>
// @namespace http://vadikom.com/dailies/fix-for-new-twitter-scrolling-of-the-details-pane/
// @version 1.0
// @description Prevents the whole page from scrolling when scrolling the details pane with the mouse wheel
// @include http://twitter.com/*
// ==/UserScript==

window.addEventListener('load', function() {
	// so idiotic approach due to Chrome's lack of support for unsafeWindow
	location.href = "javascript:$('#page-container div.pane-components').live('mousewheel DOMMouseScroll', function(e) {\
		var scrollTop = this.scrollTop,\
			clientHeight = this.clientHeight,\
			scrollHeight = this.scrollHeight,\
			originalEvent = e.originalEvent,\
			scrollingUp = (originalEvent.wheelDelta || -originalEvent.detail) > 0;\<commit_msg>fix to work on https:// connections<commit_after>// ==UserScript==
// @name Fix for #NewTwitter: Scrolling the Details Pane
// @author <NAME>
// @namespace http://vadikom.com/dailies/fix-for-new-twitter-scrolling-of-the-details-pane/
// @version 1.1
// @description Prevents the whole page from scrolling when scrolling the details pane with the mouse wheel
// @include http://twitter.com/*
// @include https://twitter.com/*
// ==/UserScript==

window.addEventListener('load', function() {
	// so idiotic approach due to Chrome's lack of support for unsafeWindow
	location.href = "javascript:$('#page-container div.pane-components').live('mousewheel DOMMouseScroll', function(e) {\
		var scrollTop = this.scrollTop,\
			clientHeight = this.clientHeight,\
			scrollHeight = this.scrollHeight,\
			originalEvent = e.originalEvent,\
			scrollingUp = (originalEvent.wheelDelta || -originalEvent.detail) > 0;\
{'fraction_non_alphanumeric': 0.14383561643835616, 'fraction_numerical': 0.003424657534246575, 'mean_word_length': 4.2960725075528705, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '938712', 'n_tokens_mistral': 533, 'n_tokens_neox': 498, 'n_words': 138}