Back to Topic Index

Is this possible?

By Tezza Rulz12 on 22/11/2010
Okay so I've got a bunch of .html files that I saved as "complete web page files" on firefox.

Theres a line of javascript in each file it that will automatically redirect the page to some homepage so that I can't work offline with it.
Is there a program of some sort that will search through every file and delete the line of script? [some 200 files with the same line so I can't do it manually]

Cheers guys




By Lee on 23/11/2010
dont think so, best get deleting.

By RobbieThe1st on 24/11/2010
Hm... What you'd want to do is find some text editor that supports search-and-replace on all files. Geany will do this.
Just select all files, drag them into the text editor(in this case, Geany).
Then, open the search & replace box(ctrl+H), place your string-to-be-removed in the "search" box, leave the replace box blank. Click the replace "in session" button, and click OK.

By Sean Sabre on 25/11/2010
QUOTE: RobbieThe2nd November 24, 2010 09:20 am
Hm... What you'd want to do is find some text editor that supports search-and-replace on all files. Geany will do this.
Just select all files, drag them into the text editor(in this case, Geany).
Then, open the search & replace box(ctrl+H), place your string-to-be-removed in the "search" box, leave the replace box blank. Click the replace "in session" button, and click OK.

Or if you want something Windows-native you can achieve the same outcome with Notepad++ - http://notepad-plus-plus.org/

By Tezza Rulz12 on 26/11/2010
Haha cheers guys!
All good, just bribed my little brother to do it all for me (h)



Back to Topic Index

Developed by Mojo.