Steam - My Privacy Settings buttons on top

On the Steam "My Privacy Settings" page, moves the Cancel and Save Changes buttons up to the top of the page.

  1. // ==UserScript==
  2. // @name Steam - My Privacy Settings buttons on top
  3. // @namespace Barefoot Monkey
  4. // @match http://steamcommunity.com/id/*
  5. // @match http://steamcommunity.com/profile/*
  6. // @match https://steamcommunity.com/id/*
  7. // @match https://steamcommunity.com/profile/*
  8. // @description On the Steam "My Privacy Settings" page, moves the Cancel and Save Changes buttons up to the top of the page.
  9. // @version 1
  10. // @grant none
  11. // ==/UserScript==
  12.  
  13. if (/^\/(?:id|profile)\/[^\/]+\/edit\/settings\/?$/.test(location.pathname)) {
  14. var style = document.createElement('style')
  15. style.appendChild(document.createTextNode(".group_content_bodytext { top: 0; right: 0; position: absolute; }"))
  16. document.head.appendChild(style)
  17. }