Discord
Steam
/
General
/
[Suggestion] B..
Login/Join
Event Log
[Suggestion] Bring back the fixed forum/sub-forum breadcrumbs
2 replies, posted
Search
In This Thread
I could be anywhere in a thread and instantly navigate back to the sub-forum or root forum page. Now there's not even a "back to top" ability. Fix it.
// ==UserScript== // @name Facepunch - Scroll2Top // @description Adds a quick scroll button // @version 0.01 // @match https://forum.facepunch.com // @match https://forum.facepunch.com/ // @include https://forum.facepunch.com/* // @run-at document-end // @require https://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js // @namespace https://greasyfork.org/users/8353 // ==/UserScript== $( "<style>.mdi-scroll2top::before { content: '\\F623'; } #scroll2top { position: fixed; bottom: 10px; right: 10px; display: none; }</style>" ).appendTo( "head" ); $('#wrapper').append('<a href="#top" id="scroll2top" class="button is-primary"><i class="mdi mdi-scroll2top"></i></a>'); $(window).scroll(function() { if($(window).scrollTop() + $(window).height() == $(document).height()) { $('#scroll2top').show("fast"); console.log("Display"); } if($(window).scrollTop() <= 0 && $('#scroll2top').is(":visible")) { $('#scroll2top').hide("fast"); console.log("Hide"); } }); $("a[href='#top']").click(function() { $("html, body").animate({ scrollTop: 0 }, 500); console.log("Hide"); }); Temp fix for that for now, adds a button in the bottom right corner when you hit the bottom of the page.
I've been using this for a while now, give it a try: #toolbar{right:0px;position:fixed;} Plop it right into your custom CSS.
Sorry, you need to
Log In
to post a reply to this thread.