Open all HTML details elements via browser console
You are on a page which has a large amount of HTML details elements, for instance translations, and you need to find a certain bit of information by searching the page.
let details = document.getElementsByTagName('details');
for (i = 0; i < details.length; ++i) {
details.item(i).open = true;
}
Issue:
You are on a page which has a large amount of HTML details elements, for instance translations, and you need to find a certain bit of information by searching the page.
Solution:
The provided snippet opens all details on a page. This can be copy-and-pasted to the browser console to easily access all the fields hidden behind the nested details.
Ihre Drupal-Website zukunftssicher machen
Wir prüfen Ihr System und zeigen, was Sie für AI, Wartung und Upgrades brauchen.