summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
+}());