Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
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.

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,636 ✭✭✭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