lang | layout | title |
---|---|---|
en |
default |
GitHub only provides a few options to automatically clear one's status in the future:
This can be annoying if for example, one wants to set a "busy" status for a couple weeks in a row, or even until a later day in the week.
The tool provided below replaces the limited options with a date and a time picker, which provide complete flexibility in how to set the date and time when that GitHub status will be cleared.
Going on a long weekend, and want to be marked away until your return on Tuesday morning, 9am? You can do so now!
There are two ways to use this tool:
According to Wikipedia's page on Userscript:
A userscript (or user script) is a program, usually written in JavaScript, for modifying web pages to augment browsing.
You can run userscripts in your browser using a userscript manager, such as Violentmonkey.
Add the userscript to your userscript manager. (For example, Violentmonkey will automatically come up when you click the link.)
Better GH status clear (userscript)
Once installed and if enabled, the userscript will automatically fire up and change GitHub's status modal when it pops up!
According to Wikipedia's page on Bookmarklet:
A bookmarklet is a bookmark stored in a web browser that contains JavaScript commands that add new features to the browser.
You can install the bookmarklet by adding it to your browser's bookmarks. The simplest way to do so is to drag'n'drop the button below to your bookmarks bar.
{% capture bookmarklet %} (() => {
{% include_relative better-github-status-clear.js %}
if (!BetterGitHubStatusClear.ensureContext()) return; BetterGitHubStatusClear.run();
})(); {% endcapture %}
[Better GH status clear (bookmarklet)](javascript:{{ bookmarklet | strip_newlines | escape | replace: "|", "%7C" }})
⬆️ Drag and drop the button above to your bookmarks!
After opening the "Set status" modal window on GitHub, click on the bookmarklet in your browser to replace the date/time picker.
You can now select freely the date and time at which to clear your GitHub status!
<iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/i_ZYsciQHog" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>You can check the bookmarklet's uncompressed source code below:
{{ bookmarklet }}