Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 1.73 KB

Y-marker.md

File metadata and controls

26 lines (18 loc) · 1.73 KB
pic Y-marker [source] [Install]
description Sets up keyboard shortcuts for placing bookmarks and navigation inside webpage

You can save current position in displayed webpage using shortcuts Shift-Alt-0‥9;   later, you may return to saved position by pressing Alt -0‥9.   Markers created in this way are kept in browser's persistent memory and they will be restored next time you open the page.


shot


notes

  • Before jumping to marker the script stores the current page position, so you can get back by pressing Alt-minus (that on the right of zero.)
  • When you open webpage the script tries to restore previously saved position #0
  • Positions are calculated in screen's pixels, so if you alter zoom factor, or text column width, or something else, markers may become invalid :(
  • You can change script's keyboard shortcuts using GreaseMonkey menu:
User Script CommandsY-marker hotkeys


  • press Alt-Shift-0   twice to set starting Y-position for any page in the whole domain
  • click on pop-up message at top-right corner to remove all markers for current webpage.  
  • you can control the script through bookmarklets:
      - jump to bookmark #0:
    javascript:postMessage('Y-marker0','*')
      - set up bookmark #0:
    javascript:postMessage('Y-marker0=','*')

License: MIT