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
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

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

  • 01-06-2015 5:47pm
    #1
    Registered Users, Registered Users 2 Posts: 1,977 ✭✭✭


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