Re: [NetBehaviour] A Google Chrome extension

2016-02-26 Thread dave miller
Hi pall It makes sense. Will have a go at it. Thanks for all your help! Dave On 26 Feb 2016 16:29, "Pall Thayer" wrote: > That's going to be tricky. You'll need to go through word by word, > checking for matches to the ones that you want to change. If a match is > found then

Re: [NetBehaviour] A Google Chrome extension

2016-02-26 Thread Pall Thayer
That's going to be tricky. You'll need to go through word by word, checking for matches to the ones that you want to change. If a match is found then you want the script to ignore the blank space replacement. If the word is not a match then you want to go through each character and replace it with

Re: [NetBehaviour] A Google Chrome extension

2016-02-26 Thread dave miller
Thanks Pall That works well! My next question (sorry to keep bothering you) is how would I replace all the text on a page with blank space, except replace certain words with other words? Last question, honest! dave On 25 February 2016 at 17:16, Pall Thayer wrote: > Hi

Re: [NetBehaviour] A Google Chrome extension

2016-02-25 Thread Bjørn Magnhildøen
Thanks for the link dave. There are so many open layers going into our interfaces that they deserve to be intervened into, deconstructed, destroyed, or subtly changed, to reveal, remove, obfuscate, adding a critical distance or intimacy, derailing, drifting through the urban net landscape, as long

Re: [NetBehaviour] A Google Chrome extension

2016-02-25 Thread dave miller
Thanks very much pall. Ok will try this. Much appreciated Ta Dave On 25 Feb 2016 17:16, "Pall Thayer" wrote: > Hi Dave, > > You'll need to change the selector for the getElementsByTagName function: > > var elements = document.getElementsByTagName('img'); > > Then you can loop

Re: [NetBehaviour] A Google Chrome extension

2016-02-25 Thread Pall Thayer
Hi Dave, You'll need to change the selector for the getElementsByTagName function: var elements = document.getElementsByTagName('img'); Then you can loop through the results and change the 'src' attribute: for(var i=0;i < elements.length;i++) { elements[i].src = 'a_different_image.png'; }

Re: [NetBehaviour] A Google Chrome extension

2016-02-25 Thread dave miller
Hi Pall Have got it working in Chrome and am customising it. It's really great! How would I replace images in the content.js file? Sorry to bother you! dave On 25 February 2016 at 12:09, dave miller wrote: > Thanks Pall > I think this could be a good way to tell

Re: [NetBehaviour] A Google Chrome extension

2016-02-25 Thread dave miller
Thanks Pall I think this could be a good way to tell stories by deleting and replacing content in web pages. Thanks for the code and will have a play. Dave On 25 Feb 2016 12:05, "Pall Thayer" wrote: > Hi Dave, > > I hadn't seen Nick's Deletionist but it sounds familiar.

Re: [NetBehaviour] A Google Chrome extension

2016-02-25 Thread dave miller
Hi Pall and Bjorn Have you seen this from Nick Montfort and Amanda Borsuk (2013): http://thedeletionist.com/about.html The Deletionist is a concise system for automatically producing an erasure poem from any Web page. It systematically removes text to uncover poems, discovering a network of

Re: [NetBehaviour] A Google Chrome extension

2016-02-11 Thread Bjørn Magnhildøen
very cool - browsers should come with this feature default, the ability to add names, words, and expressions to a list to be automatically replaced or deleted, for whenever you're tired of... being branded (the consumer is consumed). imagine people starting to share and build subcultures of find

Re: [NetBehaviour] A Google Chrome extension

2016-02-11 Thread Pall Thayer
I thought about that... i.e. that it would be interesting if users could change settings to find and replace whatever they want with whatever they want but didn't feel like digging too deep to figure out how to do that. Who knows... maybe a plugin like that already exists. Best r. Pall On Thu,

[NetBehaviour] A Google Chrome extension

2016-02-10 Thread Pall Thayer
I made a Google Chrome extension that replaces Republican candidates names with their "rapper" nicknames... https://chrome.google.com/webstore/detail/repub-rappers/nndedgpdnlmbkapigoilbpdanfpiapka -- P Thayer, Artist http://pallthayer.dyndns.org ___