Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // F-List Eicon-in-Adblocker
- // By /c/Aidan Lundy
- // To use:
- // Add the below code to a bookmark in the 'Address' part.
- // After logging into F-Chat, you can then click the bookmark and the code will run.
- // The code will then remove eicons in ads currently shown and actively remove them in ads posted in the future.
- // To disable, reload the chat page entirely.
- // Full code available for review here: https://pastebin.com/8PVrB1vu
- 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