Skip to content

Instantly share code, notes, and snippets.

@spudtrooper
Created April 19, 2021 00:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spudtrooper/a3f9f350da83e3c0788665d81cd769ab to your computer and use it in GitHub Desktop.
Save spudtrooper/a3f9f350da83e3c0788665d81cd769ab to your computer and use it in GitHub Desktop.
Makes wikipedia menus hover and track with the page, e.g. https://imgur.com/a/N6kMzrg
/*
* Makes wikipedia menus hover and track with the page, e.g. https://imgur.com/a/N6kMzrg. To use, copy this link as a bookmark:
javascript:!function(){let s=$("#toc");s.css("position","fixed"),s.css("right","10px"),s.css("top","90px"),s.css("height","80%"),s.css("overflow","auto"),s.css("display","block")}();
*/
(function() {
let toc = $('#toc');
toc.css('position', 'fixed');
toc.css('right', '10px');
toc.css('top', '90px');
toc.css('height', '80%');
toc.css('overflow', 'auto');
toc.css('display', 'block');
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment