Jump to content

User:Phlsph7/AlphabeticToolbox.js: Revision history


For any version listed below, click on its date to view it. For more help, see Help:Page history and Help:Edit summary. (cur) = difference from current version, (prev) = difference from preceding version, m = minor edit, โ†’ = section edit, โ† = automatic edit summary

15 June 2024

3 June 2024

  • curprev 16:2316:23, 3 June 2024 Phlsph7 talk contribs 647 bytes +1 ce
  • curprev 16:2016:20, 3 June 2024 Phlsph7 talk contribs 646 bytes +49 wait for other scripts to load
  • curprev 16:1816:18, 3 June 2024 Phlsph7 talk contribs 597 bytes +597 โ†Created page with '// sort the links in the toolbox alphabetically $(document).ready(function() { const toolbox = document.getElementById('p-tb'); const list = toolbox.getElementsByTagName('ul')[0]; const items = Array.from(list.getElementsByTagName('li')); items.sort(function(a, b) { var textA = a.textContent.trim().toUpperCase(); var textB = b.textContent.trim().toUpperCase(); return textA.localeCompare(textB); }); // Remove existing items and append sorted ite...'