mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
410f8ca154
--HG-- extra : rebase_source : 4fa97f21d33e96bfc6bf8456f7ce8983e1fedee2 extra : amend_source : 5c80d0ded3816655b8f05ef44f496b2a991d6940 extra : source : ea286aab916d2a35b4a08dc808667c78d4142968
15 lines
391 B
JavaScript
15 lines
391 B
JavaScript
function getElements(className) {
|
|
return Array.from(document.getElementsByClassName(className));
|
|
}
|
|
window.onload = function() {
|
|
// Force a reflow before any changes.
|
|
document.body.clientWidth;
|
|
|
|
getElements('remove').forEach(function(e) {
|
|
e.parentNode.removeChild(e);
|
|
});
|
|
getElements('remove-after').forEach(function(e) {
|
|
e.parentNode.removeChild(e.nextSibling);
|
|
});
|
|
};
|