Blog: 2026-03-05: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 34: | Line 34: | ||
the hn bait post title: mediawiki is an emacs |
the hn bait post title: mediawiki is an emacs |
||
--- |
|||
Interesting this wiki markdown support https://js.wiki/ |
|||
Latest revision as of 21:48, 5 March 2026
Adding to my addon which auto advanced protonmail, selecting my [email protected] email for replies etc...
diff --git a/protonmail_auto_advance.js b/protonmail_auto_advance.js
index 2333c7d..4363241 100644
--- a/protonmail_auto_advance.js
+++ b/protonmail_auto_advance.js
@@ -1,4 +1,4 @@
-console.log('Protonmail auto-advance 1.8')
+console.log('Protonmail auto-advance 2.0b')
const state = {
previousButton: null,
@@ -48,6 +48,14 @@ const observer = new MutationObserver(mutations => {
state.previousButton = archiveButton
}
+
+ const internalEmailButton = document.querySelector('button[aria-label="[email protected]"]')
+
+ if (internalEmailButton !== null) {
+ internalEmailButton.click()
+ const externalEmailButton = document.querySelector('button[data-testid="addresses:[email protected]"]')
+ externalEmailButton.click()
+ }
})
observer.observe(document.body, {
I should add a configuration for this or maybe just split it into another addon. But wowza that works, much better ... tried to dig up old support conversation and didn't find it. Brittle but a big functionality improvement
---
the hn bait post title: mediawiki is an emacs
---
Interesting this wiki markdown support https://js.wiki/