diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2017-12-17 20:08:08 +0100 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2017-12-17 20:08:08 +0100 |
commit | 6d3e0a47c492007d6b2bd81450e0f4d1d1181b2c (patch) | |
tree | cbc3cdf7f767860c9cbe91a6dd6ee47c5f3b6ba9 /crocoite | |
parent | 5e56d12e4f2fc37f759f7e5115916adcae8642e7 (diff) | |
download | crocoite-6d3e0a47c492007d6b2bd81450e0f4d1d1181b2c.tar.gz crocoite-6d3e0a47c492007d6b2bd81450e0f4d1d1181b2c.tar.bz2 crocoite-6d3e0a47c492007d6b2bd81450e0f4d1d1181b2c.zip |
Add Twitter fixups
Diffstat (limited to 'crocoite')
-rw-r--r-- | crocoite/data/fixups.twitter.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/crocoite/data/fixups.twitter.js b/crocoite/data/fixups.twitter.js new file mode 100644 index 0000000..330370a --- /dev/null +++ b/crocoite/data/fixups.twitter.js @@ -0,0 +1,17 @@ +/* Fixups for twitter: Some accounts are hidden behind a “suspicious activity” + * message, click that. + */ +(function(){ +function fixup () { + var show = document.querySelector ("button.ProfileWarningTimeline-button"); + if (show) { + var click = new MouseEvent('click', { + view: window, + bubbles: true, + cancelable: true + }); + show.dispatchEvent (click); + } +} +window.addEventListener("load", fixup); +}()); |