Jump to content

[script] fix marketplace.tf dashboard to make it bookmarkable / reloadable again


naknak

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...