Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Is there anything available to auto remove all javascript from a html file?

  • 01-06-2015 06:47PM
    #1
    Registered Users, Registered Users 2 Posts: 1,995 ✭✭✭


    I'm trying to reverse engineer a page and I want to start by stripping everything down so I can view it in a browser with just css and html technology...

    I'm looking at a webpage with 1000 lines in Notepad++ and it's taking me ages to collapse all the javascript stuff....

    Thanks.


Comments

  • Closed Accounts Posts: 4,763 ✭✭✭Fenster


    Regex shouldn't be used to parse HTML, but that said, you could do something like:
    /<script>.*?<\/script>/gi
    


  • Registered Users, Registered Users 2 Posts: 9,371 ✭✭✭Phoebas


    euser1984 wrote: »
    I'm trying to reverse engineer a page and I want to start by stripping everything down so I can view it in a browser with just css and html technology...

    You can just disable JavaScript execution in the browser settings.


  • Registered Users, Registered Users 2 Posts: 6,652 ✭✭✭daymobrew


    euser1984 wrote: »
    I'm looking at a webpage with 1000 lines in Notepad++ and it's taking me ages to collapse all the javascript stuff....
    Notepad++ can collapse the blocks - click the '-' sign to the left of each 'script' block.


Advertisement