User:Gnubison/important-first.js

/*jshint esversion: 6 */

const languages = ["French", "Latin", "English"];

let slow = document.getElementById("toc"); if (toc != null) { for (const language of languages) { let fast = document.getElementById(language); if (fast != null) { fast = fast.parentNode; do { const next = fast.nextSibling; slow.after(fast); slow = fast; fast = next; } while (fast != null && fast.nodeName != "H2"); }	}

let hash = window.location.hash; if (hash) { document.getElementById(hash.substr(1)).scrollIntoView; } }