Created
February 16, 2024 18:45
-
-
Save emanuele6/223d7d4961196649df855d79c64f2adb to your computer and use it in GitHub Desktop.
qutebrowser greasemonkey userscript that adds a "Select All" button to the "basic HTML" gmail client <https://mail.google.com/mail/u/0/h/>
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name select all button on GMail basic HTML client | |
// @include /^https?://mail\.google\.com/mail/u/0/h/.*/ | |
// ==/UserScript== | |
const inputs = document.querySelector("form[name='f'] table tr td") | |
if (inputs) { | |
const selectall = document.createElement("input"); | |
selectall.type = "checkbox"; | |
selectall.onchange = function(e) { | |
document.querySelectorAll("table.th input[type='checkbox']") | |
.forEach(i => i.checked = e.target.checked); | |
}; | |
inputs.prepend(selectall); | |
} |
I was just reading my email, and I have noticed that today, 2024-03-14, the gmail basic HTML client stopped working, probably either at midnight localtime (24m ago) or midnight UTC (1h24m ago).
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I wrote this script a ~4 months ago, and it works great; it is very convenient, and it works reliably on all the pages including search results, spam, bin, etc.
Unfortunately, Google announced that it is going to discontinue the "basic HTML" client this month (February 2024), so it probably won't be useful for very long. :(
After click