From 6d3e0a47c492007d6b2bd81450e0f4d1d1181b2c Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Sun, 17 Dec 2017 20:08:08 +0100 Subject: Add Twitter fixups --- crocoite/data/fixups.twitter.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 crocoite/data/fixups.twitter.js (limited to 'crocoite') 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); +}()); -- cgit v1.2.3