<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Legibility, branch domain-wildcards</title>
<subtitle>A WebExtension that lets you override the CSS of any website</subtitle>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/Legibility/'/>
<entry>
<title>wildcard_domains: Change wildcard character to '%'</title>
<updated>2021-09-08T19:34:00+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2021-09-08T19:34:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/Legibility/commit/?id=e45127b404ce194e389b447b68a33957ad9f3492'/>
<id>e45127b404ce194e389b447b68a33957ad9f3492</id>
<content type='text'>
The '*' character is not ideal to use in filenames because if you forget
to escape it in the shell, it can have harmful consequences.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The '*' character is not ideal to use in filenames because if you forget
to escape it in the shell, it can have harmful consequences.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add TODO</title>
<updated>2021-09-08T19:26:51+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2021-09-08T19:26:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/Legibility/commit/?id=87e585c3cb9ff18cc34159d19645f3df887d2f32'/>
<id>87e585c3cb9ff18cc34159d19645f3df887d2f32</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>wildcard_domains: Add TODO for different wildcard character</title>
<updated>2021-09-07T22:16:10+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2021-09-07T22:14:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/Legibility/commit/?id=452afd6544088c92e1b460808764813632318718'/>
<id>452afd6544088c92e1b460808764813632318718</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>background: Apply CSS from all files for wildcard domains</title>
<updated>2021-09-07T22:09:59+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2021-09-07T22:09:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/Legibility/commit/?id=1cc24417e2f8a6420503735c10577f57c9b4e323'/>
<id>1cc24417e2f8a6420503735c10577f57c9b4e323</id>
<content type='text'>
For the hostname "en.wikipedia.org", all of the following CSS files are
inserted:

*                `*.css`
*            `*.org.css`
*  `*.wikipedia.org.css`
* `en.wikipedia.org.css`
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
For the hostname "en.wikipedia.org", all of the following CSS files are
inserted:

*                `*.css`
*            `*.org.css`
*  `*.wikipedia.org.css`
* `en.wikipedia.org.css`
</pre>
</div>
</content>
</entry>
<entry>
<title>wildcard_domains: Remove in-progress code</title>
<updated>2021-09-07T21:57:34+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2021-09-07T21:56:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/Legibility/commit/?id=de5f4ccd88076be4e532b4d0137d8404d458dcd7'/>
<id>de5f4ccd88076be4e532b4d0137d8404d458dcd7</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>background: Describe the `wildcard_domains` function</title>
<updated>2021-09-07T21:57:34+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2021-09-07T21:55:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/Legibility/commit/?id=d759fde7f33da1b93ed3571ab254acefa0f0fdc9'/>
<id>d759fde7f33da1b93ed3571ab254acefa0f0fdc9</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>background: Build wildcard domains from a hostname</title>
<updated>2021-09-07T21:57:32+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2021-09-07T21:52:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/Legibility/commit/?id=9f40fc3d0bcbab0c4ad34cdba90c226b44a1345e'/>
<id>9f40fc3d0bcbab0c4ad34cdba90c226b44a1345e</id>
<content type='text'>
This will give us a list of filenames that we should look for to insert
CSS on the page.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This will give us a list of filenames that we should look for to insert
CSS on the page.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix CSS getting applied to incorrect sites from 4792514bbcf4aa0c1b102a3a</title>
<updated>2018-10-06T15:16:28+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-10-06T15:16:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/Legibility/commit/?id=ba12ee4dce5cda80a8ecb43760555f10bce6ccb6'/>
<id>ba12ee4dce5cda80a8ecb43760555f10bce6ccb6</id>
<content type='text'>
That commit incorrectly caused a bunch (if not all) custom stylesheets
to be inserted for the wrong domains.

Add a condition to ensure that the domain of the `tabId` used matches
that of the stylesheet.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
That commit incorrectly caused a bunch (if not all) custom stylesheets
to be inserted for the wrong domains.

Add a condition to ensure that the domain of the `tabId` used matches
that of the stylesheet.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix CSS not loading in background tabs</title>
<updated>2018-10-05T14:33:01+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-10-05T14:33:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/Legibility/commit/?id=4792514bbcf4aa0c1b102a3afc25c8c0ae4636b5'/>
<id>4792514bbcf4aa0c1b102a3afc25c8c0ae4636b5</id>
<content type='text'>
When opening tabs in the background, for example when clicking links,
custom CSS wouldn't get properly loaded in those tabs.

It turns out that the CSS was actually getting loaded into the current
tab, which I hadn't realised.

Thanks to Niklas Gollenstede's answer here for clueing me into this:
https://discourse.mozilla.org/t/inject-css-with-webextension/16877/3

To fix the problem, we specify the `tabId` in which to load the CSS. We
get the `tabId` from the `webNavigation.onCompleted` event, which tells
us the page is basically ready.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When opening tabs in the background, for example when clicking links,
custom CSS wouldn't get properly loaded in those tabs.

It turns out that the CSS was actually getting loaded into the current
tab, which I hadn't realised.

Thanks to Niklas Gollenstede's answer here for clueing me into this:
https://discourse.mozilla.org/t/inject-css-with-webextension/16877/3

To fix the problem, we specify the `tabId` in which to load the CSS. We
get the `tabId` from the `webNavigation.onCompleted` event, which tells
us the page is basically ready.
</pre>
</div>
</content>
</entry>
<entry>
<title>README: Add prompt character to shell code</title>
<updated>2018-08-05T03:12:54+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-08-05T03:12:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/Legibility/commit/?id=d6af5af47db7690bfbec476f0f2944cd0b204f07'/>
<id>d6af5af47db7690bfbec476f0f2944cd0b204f07</id>
<content type='text'>
Forgot this when I wrote the instructions. I usually like to prefix
shell commands with a prompt character.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Forgot this when I wrote the instructions. I usually like to prefix
shell commands with a prompt character.
</pre>
</div>
</content>
</entry>
</feed>
