mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-16 09:23:07 +09:00
14 lines
391 B
JavaScript
14 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);
|
|
});
|
|
};
|