How to modify content of a webpage while not letting the page use javascript?

  • Hello,

    I want to modify the content of a webpage which is sent to me from a server. It wouldn't itself be a problem (I even made an userscript which perfectly does it's job), unless I wanted to have JavaScript disabled on this page...

    And so my question comes... Is there a way how to modify the source code of exact webpage within Opera while not allowing the page to do anything with it's own javascript?

    Thanks

    Ps.

    I don't mind writing extensions (I didn't only write one, because it AFAIK wouldn't work. But of course I would be happy to hear I was wrong.), messing with lowlevel setup, or doing any such terribly sounding stuff, if there would be a good chance that it will get the job done.

  • Define "modify".
    If you simply wanna hide some stuff, then yes, it can possibly be done with CSS.
    All other cases: No way. That's what JS is for.

  • I want to alter some parts of HTML code. That is definetely not something what can be done with CSS.

    So there is no way how to run my own scripts in the context of webpage without letting the page itself use javascript?

  • no JS = no JS -> no

  • I was thinking more like "No JS for a webpage -> No JS for a webpage", but OK. 😄

    Ok, so I would have to remove all the page's scripts on my own or write HTML modyfying proxy. Damn it.

  • HTML modifying proxy -> you can use Privoxy. Works great, except that it won't work over HTTPS (obviously) 😞

Log in to reply
 

Looks like your connection to Opera forums was lost, please wait while we try to reconnect.