naknak Posted March 26, 2018 Share Posted March 26, 2018 mp.tf made some changes to their dashboard so that you always see a bunch of graphs and crap when you open the page. Here's a tampermonkey / greasemonkey script to make the tabs bookmarkable / reloadable. Install greasemonkey or tampermonkey, create new script, paste this into it. // ==UserScript== // @name mptf dashboard click #whatever // @namespace http://naknak.net/ // @version 0.1 // @description Click on dashboard tabs if the url contains a #hash // @author naknak // @match https://marketplace.tf/dashboard* // @grant none // ==/UserScript== function harsh() { if(window.location.hash.length) { $('a[href="' + window.location.hash + '"]').click(); window.scrollTo(0,0); } } window.onhashchange = harsh; harsh(); Link to comment Share on other sites More sharing options...
D.Alex Posted March 26, 2018 Share Posted March 26, 2018 There was maybe a day or two when this script was useful but then the dashboard was improved and right now marketplace.tf/dashboard#items is quite bookmarkable already. So your script simply scrolls to the top of the page and that's it. Link to comment Share on other sites More sharing options...
naknak Posted March 26, 2018 Author Share Posted March 26, 2018 oh I never noticed. I wrote this the day they made the change. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.