Does anyone know how to make a browser extension? I am trying to make an extension that replaces a word with an image. Help would be very much appreciated.
Offline
Cool project! I make extensions all the time, but they don't work too well for this kind (I tried already, yes).
Offline
LS97 wrote:
Cool project! I make extensions all the time, but they don't work too well for this kind (I tried already, yes).
Nice! I am working on an extension that will add more smileys to the Scratch Forums. Does anyone know how I could do this?
Offline
scratcher7_13 wrote:
LS97 wrote:
Cool project! I make extensions all the time, but they don't work too well for this kind (I tried already, yes).
Nice! I am working on an extension that will add more smileys to the Scratch Forums. Does anyone know how I could do this?
I see, that's cool, but do remember that only people with your extension will see the smilies. The method should be a simple JS replace though.
Offline
Do you know the JavaScript replace code? Anyway, I am planning on making the extension freely available.
Offline
scratcher7_13 wrote:
Do you know the JavaScript replace code? Anyway, I am planning on making the extension freely available.
it's a simple
document.body.innerHTML = document.body.innerHTML.replace("before", "after")
Offline
LS97 wrote:
scratcher7_13 wrote:
Do you know the JavaScript replace code? Anyway, I am planning on making the extension freely available.
it's a simple
document.body.innerHTML = document.body.innerHTML.replace("before", "after")
Does this work with images?
Offline
scratcher7_13 wrote:
LS97 wrote:
scratcher7_13 wrote:
Do you know the JavaScript replace code? Anyway, I am planning on making the extension freely available.
it's a simple
document.body.innerHTML = document.body.innerHTML.replace("before", "after")Does this work with images?
yes, just put the image tag in the after part.
Offline
WindowsExplorer wrote:
scratcher7_13 wrote:
LS97 wrote:
it's a simple
document.body.innerHTML = document.body.innerHTML.replace("before", "after")Does this work with images?
yes, just put the image tag in the after part.
Do you mean the URL?
Offline
scratcher7_13 wrote:
WindowsExplorer wrote:
scratcher7_13 wrote:
Does this work with images?
yes, just put the image tag in the after part.
Do you mean the URL?
Just enter the html image tag into the "after" part. Also, how what are you ussing to make the extension anyway?
Last edited by WindowsExplorer (2011-09-27 13:52:42)
Offline