Giter VIP home page Giter VIP logo

Comments (3)

tladesignz avatar tladesignz commented on June 15, 2024

is it possible to implement a solution that works like puppeteer, mainly;

  • to download entire website content,

For later viewing?
I guess, you would do that with URLSession plus some not so small logic to follow all referenced resources and links, not WKWebView.

  • to interact with the dom, data input, intercept requests e.t.c ...

One can load their own JavaScript into a given Website context. You can mangle the DOM with that and inject form values and the like. Requests to resources can at least be denied, not sure about replacing them.

But why would you want to do that on iOS? Seems cumbersome, compared to doinng this on some Linux server.

If you're just looking for an ad filter, there's better solutions

from onionbrowser.

ceddybi avatar ceddybi commented on June 15, 2024

Thank you @tladesignz

I guess, you would do that with URLSession plus some not so small logic to follow all referenced resources and links, not WKWebView.

How would you archive something similar to chrome, where you right click > "Save as" > Webpage + Assets (images / js scripts / css)

One can load their own JavaScript into a given Website context. You can mangle the DOM with that and inject form values and the like.

This is all i need

But why would you want to do that on iOS? Seems cumbersome, compared to doinng this on some Linux server.

Well, this app can run on Mac, so it'd be easier than running it from iOS

from onionbrowser.

tladesignz avatar tladesignz commented on June 15, 2024

I guess, you would do that with URLSession plus some not so small logic to follow all referenced resources and links, not WKWebView.

How would you archive something similar to chrome, where you right click > "Save as" > Webpage + Assets (images / js scripts / css)

That'll be a few days of serious coding. +X for catching all the edge cases. You wouldn't need Onion Browser for that, that would just be a distraction.

One can load their own JavaScript into a given Website context. You can mangle the DOM with that and inject form values and the like.

This is all i need

But why would you want to do that on iOS? Seems cumbersome, compared to doinng this on some Linux server.

Well, this app can run on Mac, so it'd be easier than running it from iOS

On Mac? In a simulator. Well. Or as iPad-app-running-on-macOS. Well, well. What you're up to, sounds like you would be better of with a fresh project.

from onionbrowser.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.