summaryrefslogtreecommitdiff
path: root/crocoite/data/per-site/twitter.js
blob: 330370a7f1073bec0666aeeac4f09b56b543cfb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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);
}());