summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2017-12-17 20:08:08 +0100
committerLars-Dominik Braun <lars@6xq.net>2017-12-17 20:08:08 +0100
commit6d3e0a47c492007d6b2bd81450e0f4d1d1181b2c (patch)
treecbc3cdf7f767860c9cbe91a6dd6ee47c5f3b6ba9
parent5e56d12e4f2fc37f759f7e5115916adcae8642e7 (diff)
downloadcrocoite-6d3e0a47c492007d6b2bd81450e0f4d1d1181b2c.zip
crocoite-6d3e0a47c492007d6b2bd81450e0f4d1d1181b2c.tar.gz
crocoite-6d3e0a47c492007d6b2bd81450e0f4d1d1181b2c.tar.bz2
Add Twitter fixups
-rw-r--r--crocoite/data/fixups.twitter.js17
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);
+}());