Created
January 15, 2022 00:32
-
-
Save gcjbr/11c65248edcaa8eece39c1920737c146 to your computer and use it in GitHub Desktop.
Script para livrar sua timeline do Twitter do INFERNO do BBB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const delayMs = 1000; | |
const keywords = ["#redeBBB","Big Brother","bbb","#BBB","#BBB22","#BBB222","#BBBB22","boninho","b0ninho","b0ninh0","boninh0","globoplay","Tadeu Schmidt","Schmidt","schimit","Pedro Scooby","Scooby","Arthur Aguiar","Brunna Gonçalves","Rhudson Victor","Rhudson","Rafa Kalimann","Kalimann","Luciano Estevan","Eslovenia Marques","Lucas Bissoli","lais caldas","Bissoli","Barbara Heck","Heck","Rodrigo Mussi","Mussi","Natalia Deodato","Paulo Andre Camilo","bigfone","bigphone","paredão","paredawn","paredaum","Eslovenia","Eliezer","Eli","Jessilane","Lais","Paulo Andre","Andre Camilo","anjo","imunidade","votação","projac"]; | |
const nativeInputValueSetter = Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype, "value").set; | |
const addMutedKeyword = keyword => { | |
const input = document.querySelector("[name='keyword']"); | |
nativeInputValueSetter.call(input, keyword); | |
input.dispatchEvent(new Event('input', { bubbles: true })); | |
document.querySelector("[data-testid='settingsDetailSave']").click(); | |
} | |
const delay = () => { | |
return new Promise(res => setTimeout(res, delayMs)); | |
}; | |
keywords.reduce(async (prev, keyword) => { | |
await prev; | |
document.querySelector("a[href='/settings/add_muted_keyword']").click(); | |
await delay(); | |
addMutedKeyword(keyword); | |
return delay(); | |
}, Promise.resolve()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Opa, tudo bem? Eu estou tentando aplicar esse script, mas eu nao sei exatamente onde eu colo toda essa linha de comando. Se tu pudesse me dar uma mao eu agradeceria demais!
valeu!