facebook-adblock / facebook_adblock

An open-source Ad Blocker for Facebook™
GNU General Public License v3.0
215 stars 42 forks source link

After reloade stop work - BUG FOUND [BUG] #112

Closed Dark3n89 closed 2 years ago

Dark3n89 commented 2 years ago

Hi, I tried to solve the problem myself but I can't, as many have reported, the script really stops working. IT WILL HAPPEN WHEN THE USER CLICKS ON THE FACEBOOK LOGO TO RETURN TO THE MAIN PAGE. The cause will be somewhere around console.info("Monitoring feed updates", [feed]);, a message will be displayed and the script will stop.

cbotsikas commented 2 years ago

Thank you for reporting. I was able to reproduce and find the issue.

Dark3n89 commented 2 years ago

@cbotsikas I solve problem, after delete feedObserver.disconnect(); code here This problem is gone and script continue deleting again.

cbotsikas commented 2 years ago

@Dark3n89 I already have a working solution but we haven't released a new version yet. You need to disconnect to prevent memory leak. If you see the last commit, I'm cleaning up in case you come back to home screen.

tiratatp commented 2 years ago

Fixed in v1.9.7