I was sick of seeing those daft Twitter "disputes" all over the messages of Powell and Trump so made a little scripting that removes them from the page. This is for desktop users. Sharing the code I used to combat those stuuuuuuuuuuupid messages.
The script is at the bottom of this post as a quote.
If you aren't used to using the console... how you access the console depends on your browser. First you visit the Twitter page, then load the console and run the script. That's the order. Load a page then run the script because scripts are sandboxed in browsers to domains and pages.
Step 1: Load the Twitter page
Step:2 Open the console
Chrome - CTRL+SHIFT+I (Make sure the Console tab is selected) At the bottom of the 'Console 'is a blue arrow, after that arrow is where you paste the code then click ENTER key to run it.
Firefox - CTRL+SHIFT+K (Make sure the Console tab is selected) At the bottom of the 'Console 'is a double blue arrow, that's where you paste the code then click ENTER key to run it.
Step 3: Add the script at the bottom of the post (after you understand the rest of this).
After you run the script: The script will trigger itself every 3 seconds searching for disputes on the page, then destroy them.
If you continue to watch your console run... the messages will look like this each time a dispute is removed from the page. It shows the URL you are on, then the word [Deleted] then the text Twitter had inside the dispute.
https://twitter.com/sidneypowell1 [Deleted] This claim about election fraud is disputed
https://twitter.com/GenFlynn [Deleted] This claim about election fraud is disputed
https://twitter.com/realDonaldTrump [Deleted] This claim about election fraud is disputed
You don't have to leave the console open, however. You can click the X button to remove it from showing and use the webpage while the scripting runs behind the scenes.
Since it's only going to run the script every 3 seconds you might see a dispute on the screen momentarily but it will go away soon enough.
You could change the 3000 to something else but much lower than 1500 (1.5 seconds) and scripts can get flaky.
I've tested this script on the accounts where election disputes come up. Not certain it works all over Twitter but as long as they build their elements the same way for all disputes, it should pick up all of them. I don't know of any non political dispute accounts to test it against.
As an example, it works on the /search page.
https://twitter.com/search?q=is%20disputed&src=typed_query&f=live [Deleted] This claim about election fraud is disputed
Below is the script you copy and paste into your browser console. After pressing enter, the script will run. To stop the script from running you could close the tab, or close the entire browser, or just refresh the page by pressing the F5 key.
The script is not persistent beyond that tab. If you are on one Twitter page and click an @name link to another, the script will still be running. But, if you manually type in the persons name in the URL ex. twitter.com/aNEWname then that reloads the page and the script stops and would have to be pasted into the console again to fire up a new timer.
-
-
- ========= S C R I P T
-
setInterval(quietDispute,3000);
function quietDispute() {
var a=document.getElementsByTagName('a');
var aLength=a.length;
for (var i=0; i<aLength; i++) {
dispute=a[i];
if (dispute!=undefined) {
href=dispute.getAttribute('href');
if ( href.indexOf('/i/events/')!=-1 ) {
console.log(window.location.href+' [Deleted] '+dispute.childNodes[0].childNodes[1].childNodes[0].innerText);
// console.log(dispute);
dispute.remove();
}
}
} }