<feed xmlns='http://www.w3.org/2005/Atom'>
<title>GitHub-Open-All-Outdated-Comments, branch master</title>
<subtitle>A Greasemonkey script that expands all pull request comments</subtitle>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/GitHub-Open-All-Outdated-Comments/'/>
<entry>
<title>README: Edit description for clarity</title>
<updated>2017-12-07T21:22:07+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2017-12-07T21:22:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/GitHub-Open-All-Outdated-Comments/commit/?id=a15922788498a0203a7d2a4692663f1e451c8569'/>
<id>a15922788498a0203a7d2a4692663f1e451c8569</id>
<content type='text'>
After re-reading the description, I didn't like the sound of it. It
didn't clearly distinguish the problem and existing behaviour.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
After re-reading the description, I didn't like the sound of it. It
didn't clearly distinguish the problem and existing behaviour.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add README</title>
<updated>2017-12-07T21:11:27+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2017-12-07T21:11:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/GitHub-Open-All-Outdated-Comments/commit/?id=6b3fdc1b00dc2fa35dc39323c80f97bd1dbe75dc'/>
<id>6b3fdc1b00dc2fa35dc39323c80f97bd1dbe75dc</id>
<content type='text'>
Describe the script, and include installation instructions and license
information.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Describe the script, and include installation instructions and license
information.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add license (GNU GPLv3+)</title>
<updated>2017-12-07T21:04:17+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2017-12-07T21:04:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/GitHub-Open-All-Outdated-Comments/commit/?id=5565ee114e3efb4837627555d3db66ffea317be5'/>
<id>5565ee114e3efb4837627555d3db66ffea317be5</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Initial commit. Expands all hidden outdated comments on GitHub PRs.</title>
<updated>2017-12-07T19:57:51+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2017-12-07T19:57:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/GitHub-Open-All-Outdated-Comments/commit/?id=fe09ad0dbd6faa6abeb8d0df81f9f45c16bb0d4d'/>
<id>fe09ad0dbd6faa6abeb8d0df81f9f45c16bb0d4d</id>
<content type='text'>
When visiting a GitHub pull request page, this script will expand all
collapsed outdated comments. This facilitates seeing comment responses
that may have been hidden by more recent changes.

Originally this code was supposed to be a bookmarklet. Invoking it would
toggle all the comments to be expanded or collapsed. I tried this, but
it didn't work:

    javascript:(function() { var outdated_buttons = document.querySelectorAll('.js-comment-container.outdated-comment:not(.open) .show-outdated-button'); for (var i = 0; i &lt; outdated_buttons.length; i++) { outdated_buttons[i].click(); } })()

(Also tried with the characters converted to HTML entities.)

The reason why it didn't work is that GitHub apparently has a Content
Security Policy (CSP) in place that prevents the execution of
bookmarklets. Yes, it's for anti-XSS security, but what kind of internet
is this where bookmarlets don't work any more? Not the kind of internet
I want. That makes one less fun thing about the web, how disappointing.

Since a bookmarlet won't work, make it a Greasemonkey user script
instead. And instead of toggling comments, just expand them by default
all the time.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When visiting a GitHub pull request page, this script will expand all
collapsed outdated comments. This facilitates seeing comment responses
that may have been hidden by more recent changes.

Originally this code was supposed to be a bookmarklet. Invoking it would
toggle all the comments to be expanded or collapsed. I tried this, but
it didn't work:

    javascript:(function() { var outdated_buttons = document.querySelectorAll('.js-comment-container.outdated-comment:not(.open) .show-outdated-button'); for (var i = 0; i &lt; outdated_buttons.length; i++) { outdated_buttons[i].click(); } })()

(Also tried with the characters converted to HTML entities.)

The reason why it didn't work is that GitHub apparently has a Content
Security Policy (CSP) in place that prevents the execution of
bookmarklets. Yes, it's for anti-XSS security, but what kind of internet
is this where bookmarlets don't work any more? Not the kind of internet
I want. That makes one less fun thing about the web, how disappointing.

Since a bookmarlet won't work, make it a Greasemonkey user script
instead. And instead of toggling comments, just expand them by default
all the time.
</pre>
</div>
</content>
</entry>
</feed>
