mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 00:05:36 +00:00
15 lines
374 B
JavaScript
15 lines
374 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.remove();
|
|
});
|
|
getElements('remove-after').forEach(function(e) {
|
|
e.parentNode.removeChild(e.nextSibling);
|
|
});
|
|
};
|