# I am the Watcher. I am your guide through this vast new twtiverse.
#
# Usage:
# https://watcher.sour.is/api/plain/users View list of users and latest twt date.
# https://watcher.sour.is/api/plain/twt View all twts.
# https://watcher.sour.is/api/plain/mentions?uri=:uri View all mentions for uri.
# https://watcher.sour.is/api/plain/conv/:hash View all twts for a conversation subject.
#
# Options:
# uri Filter to show a specific users twts.
# offset Start index for quey.
# limit Count of items to return (going back in time).
#
# twt range = 1 1
# self = https://watcher.sour.is/conv/76h6wcq
Does anyone know of a good, minimally hacky, and somewhat compact way to create a menu with consistent styles on an arbitrary webpage using a JavaScript bookmarklet? The least hacky way I can think of is constructing a new HTML document by appending strings, creating a data:
URI, and sending the user to it using window.location.href
. Pretty hacky, and my current code uses document.createElement
anyway.