Does anyone know of a chrome extension that would ...
# general
c
Does anyone know of a chrome extension that would keep you line item header row static?
j
I’ve got something, let me try to find it for you. Not an extension tho.
👀 1
Copy code
jQuery(function () {

	const windowHeight = jQuery(window).height();
	
	jQuery('.uir-machine-table-container')
	.filter((index, elem) => jQuery(elem).height() > windowHeight)
	.css('height', '90vh')
	.bind('scroll', (event) => {
		const headerElem = jQuery(event.target).find('.uir-machine-headerrow');
		headerElem.css('transform', 'translate(0, ' + (event.target.scrollTop - 1) + 'px)');
	});
		
});
toss this into client script or TamperMonkey
t
Yes TamperMonkey is the key
c
Thank you
j
I ❤️ Tampermonkey
I use it to load SS2 modules so I can use them in console
and also to make the script file editor window bigger