FrostCo / AdvancedProfanityFilter

A browser extension to filter profanity from webpages
GNU General Public License v3.0
164 stars 27 forks source link

Right click not showing & "Error: p is null" #575

Open DodgeHere opened 1 month ago

DodgeHere commented 1 month ago

I tried to add a word by right-clicking but it's not showing. So when I tried to add it manually i get "Error: p is null". Is there a fix? Screenshot 2024-09-28 at 00-47-25 Advanced Profanity Filter

richardfrost commented 1 month ago

@DodgeHere that's definitely an interesting one. I might need some more to go off of. Could you open up the developer console (right-click anywhere on the page and choose "Inspect". At the bottom of half of the page that opens up should be more details about the error. If you could send me a screenshot of it that would help me know what might have gone wrong.

Does the rest of the filter still work? Have you been able to add other words? How about through the right-click menu?

DodgeHere commented 1 month ago

@DodgeHere that's definitely an interesting one. I might need some more to go off of. Could you open up the developer console (right-click anywhere on the page and choose "Inspect". At the bottom of half of the page that opens up should be more details about the error. If you could send me a screenshot of it that would help me know what might have gone wrong.

Does the rest of the filter still work? Have you been able to add other words? How about through the right-click menu?

The filter still works, I just can't add any more words. The right-click menu doesn't show up anywhere. Screenshot 2024-09-30 003853

richardfrost commented 1 month ago

@DodgeHere I'm having a hard time trying to re-create this issue. I believe with that error that the word was actually saved, at least partially. I might need a screenshot of your config (you can use Options page > Config tab > Inline editor, and specifically around the word dukey), or just the whole exported config. Without knowing what went wrong I don't really know how to fix it, or protect against it from happening again.

DodgeHere commented 1 month ago

@richardfrost im just using dukey as an example word, any word i put in is giving me the error. it's not even showing in the editor

richardfrost commented 1 month ago

@DodgeHere Okay, do you a lot of words (100+) in your list? The error that you are getting looks like it thinks the word you are adding/changing is already in the list of words, and something is going wrong with it updating it. If you have a lot of words, it might be possible there is an underlying storage issue that I suppose could cause weird errors like this.

In the second screenshot you sent, the line right above the yellow one (at the bottom) appears to be red. If that line shows more error details that might help me. You will likely be able to click on it and have it take you to the point in the code where the issue is happening. That might give me a bit more to go off of.

Are you able to export your configuration to a file? If so, would you be willing to share that (either here, or send it to me in an email) so I can try to re-create your environment better?