aboutsummaryrefslogtreecommitdiffstats
path: root/google-docs-last-edit-label.user.js
AgeCommit message (Collapse)Author
2021-08-04Update the "Last edit" tooltip with a `MutationObserver`Teddy Wing
Use a `MutationObserver` to update the tooltip. This allows us to update the tooltip after the page and user script have fully loaded, and then the label gets populated. It also should allow us to capture updates to the label and update the tooltip accordingly.
2021-08-04Try running at `document-idle` to initialise later in the page loadTeddy Wing
The script was running too early, and the content of the element wasn't populated before it tried to set the title. Try running at `document-idle` to see if that fixes it. It doesn't. Looks like we're going to have to use a mutation observer. We would have needed to anyway, though, because the text can change while the page is open, and we want the tooltip to update accordingly.
2021-08-04Add user script header and license headerTeddy Wing
2021-08-04Code to set the tooltip of the "Last updated at" link in Google DocsTeddy Wing