A little help with my Google Chrome extension, Kosherizer

Page 1 of 1 [ 4 posts ] 

EphraimB
Raven
Raven

Joined: 4 Nov 2015
Gender: Male
Posts: 100
Location: Far Rockaway, NY

25 Mar 2016, 10:51 am

A few days ago, a started making a Google Chrome extension called Kosherizer. What it does is makes the loaded webpage more kosher by replacing all the curse words and inappropriate words on the webpage with their appropriate counterparts. The problem is that it only works on regular webpages. I want to get it to work on Google Plus posts as well. How can I do this?

All my code for this extension is located at: https://github.com/EphraimB/Kosherizer.git


_________________
My neurodiverse (Aspie) score: 151 of 200
My neurotypical (non-autistic) score: 70 of 200
I'm very likely neurodiverse (Aspie)

My personality type: INTJ-T


LonelyJar
Veteran
Veteran

User avatar

Joined: 15 Sep 2013
Gender: Male
Posts: 2,073

27 Mar 2016, 5:26 am

Just out of curiosity, how does your code deal with the Scunthorpe problem?



EphraimB
Raven
Raven

Joined: 4 Nov 2015
Gender: Male
Posts: 100
Location: Far Rockaway, NY

27 Mar 2016, 6:36 am

I'm going to have to update it at some point to read the whole sentence first and then modify it.


_________________
My neurodiverse (Aspie) score: 151 of 200
My neurotypical (non-autistic) score: 70 of 200
I'm very likely neurodiverse (Aspie)

My personality type: INTJ-T


Chichikov
Veteran
Veteran

User avatar

Joined: 27 Mar 2016
Age: 50
Gender: Male
Posts: 1,151
Location: UK

29 Mar 2016, 6:17 pm

This is just speculation, but I'm assuming the issue is that your extension only works on the initial text on the page (it runs on document end which fires after the page loads initially), but text that is loaded after (via ajax) isn't checked (eg if you scroll down on a youtube video the comments load at that point, they don't load at the start).

You might want to try something like the technique explained here

http://stackoverflow.com/questions/7325 ... ax-request

It listens for any changes in the dom and after a period when the events have stopped firing it will run your find\replace code.