Advertisement
illwill

Twitter infosec mute words

May 20th, 2020
800
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 1. Go to https://twitter.com/settings/muted_keywords
  2. 2. Open Chrome dev tools: ctrl+shift+i then go to Console tab
  3. 3. Paste the code below into console window, then hit enter:
  4.  
  5. const keywords = `infosecdrama
  6. cancel culture
  7. So excited for my first defcon
  8. i did a thing
  9. hey hey you
  10. i dont know who needs to hear this
  11. i don't know who needs to hear this
  12. I'm so sorry that this happened
  13. Im so sorry that this happened
  14. techbro
  15. brocode
  16. brogrammer
  17. bro culture
  18. rock star
  19. rockstar
  20. Inclusive
  21. Inclusivity
  22. community
  23. rockstar
  24. literal
  25. nazi
  26. the left
  27. the right
  28. gatekeeping
  29. gatekeeper
  30. donglegate
  31. gamergate
  32. toxic
  33. sjw
  34. Literally
  35. patriarchy
  36. matriarchy
  37. misogynist
  38. misogyny
  39. misandrist
  40. misandry
  41. intersectionality
  42. marginalized
  43. sexism
  44. Gender stereotypes
  45. diversity
  46. trump
  47. hillary
  48. bernie
  49. biden
  50. brexit
  51. maga
  52. democrat
  53. republican
  54. wwg1wga
  55. coronavirus
  56. covid
  57. covid-19
  58. outbreak
  59. pandemic
  60. gender identity
  61. cisgender
  62. She/Her
  63. He/Him
  64. trans
  65. transphobia
  66. sexism
  67. whorephobic
  68. supremacist
  69. bigotry
  70. enby
  71. non-binary
  72. they/them
  73. fursona
  74. furries
  75. creeper
  76. creepy
  77. wannacry
  78. CISSP
  79. kevin mitnick
  80. dan kaminsky
  81. `.split("\n");
  82.  
  83. const nativeInputValueSetter = Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype, "value").set;
  84.  
  85. const addMutedKeyword = keyword => {
  86.   const input = document.querySelector("[name='keyword']");
  87.   nativeInputValueSetter.call(input, keyword);
  88.   input.dispatchEvent(new Event('input', { bubbles: true }));
  89.   document.querySelector("[data-testid='settingsDetailSave']").click();
  90. }
  91.  
  92. const delay = () => {
  93.   return new Promise(res => setTimeout(res, 500));
  94. };
  95.  
  96. keywords.reduce(async (prev, keyword) => {
  97.   await prev;
  98.   document.querySelector("a[href='/settings/add_muted_keyword']").click();
  99.   await delay();
  100.   addMutedKeyword(keyword);
  101.   return delay();
  102. }, Promise.resolve());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement