Advertisement
Guest User

F-List Eicon-in-AdBlocker (Bookmarklet version)

a guest
Dec 30th, 2023
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // F-List Eicon-in-Adblocker
  2. // By /c/Aidan Lundy
  3. // To use:
  4. // Add the below code to a bookmark in the 'Address' part.
  5. // After logging into F-Chat, you can then click the bookmark and the code will run.
  6. // The code will then remove eicons in ads currently shown and actively remove them in ads posted in the future.
  7. // To disable, reload the chat page entirely.
  8. // Full code available for review here: https://pastebin.com/8PVrB1vu
  9.  
  10. javascript:(function(){function e(e){var t=e.querySelectorAll(".message.message-ad");for(var n=0;n<t.length;n++){var a=t[n].getElementsByTagName("img");for(var o=0;o<a.length;o++)a[o].src.includes("eicon")&&a[o].parentNode.removeChild(a[o])}}var t=document.querySelector(".border-top.messages.messages-ads"),n={attributes:!0,childList:!0,subtree:!0},a=function(a,o){for(var r of a)"childList"===r.type&&e(t)};new MutationObserver(a).observe(t,n),e(t)})()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement