Remove class from <body> dynamically using uBlock Origin

Viewed 1352

During browsing when I click an element

<body> 

changes to

<body class="xyz">

Is it possible to remove this class dynamically using uBlock Origin? Expected behavior: when I click this element, <body> does not change. remove-attr.js (suggested by this answer) does not work because class "xyz" is not present at the time when the page is loaded.

1 Answers

Can be done using rc.js.

www.example.com##+js(rc, class1|class2, [target], [behavior])
Related