<feed xmlns='http://www.w3.org/2005/Atom'>
<title>google-docs-last-edit-label, branch master</title>
<subtitle>A user script that adds a tooltip when hovering over the Google Docs "Last edit" time label</subtitle>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/google-docs-last-edit-label/'/>
<entry>
<title>Add README</title>
<updated>2021-08-04T21:42:50+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2021-08-04T21:42:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/google-docs-last-edit-label/commit/?id=cbe39259924663f3338733ec801ed76e66b56601'/>
<id>cbe39259924663f3338733ec801ed76e66b56601</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add license (GNU GPLv3+)</title>
<updated>2021-08-04T21:22:54+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2021-08-04T21:22:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/google-docs-last-edit-label/commit/?id=c722e35070af68b01de1c3ff348a1b92293d0bc4'/>
<id>c722e35070af68b01de1c3ff348a1b92293d0bc4</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Update the "Last edit" tooltip with a `MutationObserver`</title>
<updated>2021-08-04T20:52:04+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2021-08-04T20:52:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/google-docs-last-edit-label/commit/?id=cac1872890fae3256535a64a1712e36990b44b04'/>
<id>cac1872890fae3256535a64a1712e36990b44b04</id>
<content type='text'>
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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
</pre>
</div>
</content>
</entry>
<entry>
<title>Try running at `document-idle` to initialise later in the page load</title>
<updated>2021-08-04T20:31:12+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2021-08-04T20:31:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/google-docs-last-edit-label/commit/?id=b29b2ad1ca4d95a2f57ce567b05ee576737aff05'/>
<id>b29b2ad1ca4d95a2f57ce567b05ee576737aff05</id>
<content type='text'>
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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add user script header and license header</title>
<updated>2021-08-04T20:30:51+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2021-08-04T20:30:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/google-docs-last-edit-label/commit/?id=13a84709a3d940f71a32b46108ffb25e854c2b98'/>
<id>13a84709a3d940f71a32b46108ffb25e854c2b98</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Code to set the tooltip of the "Last updated at" link in Google Docs</title>
<updated>2021-08-04T20:29:35+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2021-08-04T20:29:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/google-docs-last-edit-label/commit/?id=054e57ef70f4055a223e7c8b9a775fce6a3f7685'/>
<id>054e57ef70f4055a223e7c8b9a775fce6a3f7685</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
