Comments (3)
This is a pretty good solution that, I think, would work by hooking a regex search (like you're talking about) in -(void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data
and -(void)connectionDidFinishLoading:(NSURLConnection *)connection
(and the duplicated HTTPConnection*
versions of those) in ProxyURLProtocol.
Will look into it.
from onionbrowser.
Just a really rough cut off the top of my head to kill off Javascript... Here's two RE's that may help. Granted I didn't test them first.
Catching Events:
/on(afterprint|beforeprint|beforeonload|blur|error|focus|haschange|load|message|offline|online|pagehide|pageshow|popstate|redo|resize|storage|undo|unload|blur|change|contextmenu|focus|formchange|forminput|input|invalid|reset|select|submit|keydown|keypress|keyup|click|dblclick|drag|dragend|dragenter|dragleave|dragover|dragstart|drop|mousedown|mousemove|mouseout|mouseover|mouseup|mousewheel|scroll|abort|canplay|canplaythrough|durationchange|emptied|ended|loadeddata|loadedmetadata|loadstart|pause|play|playing|progress|ratechange|readystatechange|seeked|seeking|stalled|suspend|timeupdate|volumechange|waiting)=("|/')[^(\"|/')]+("|/')//gi
Catching Scripts:
s/<script.*(/>|/script>)//gi
from onionbrowser.
fixed/superseded by the script-blocking patch in b634ef8
from onionbrowser.
Related Issues (20)
- Cant access any .onion sites. HOT 3
- Not able to load videos (iOS 17.0 Beta) HOT 2
- Crashes when clicking link that opens popup tabs. HOT 1
- Query: has there been any work on making an update for ios 17?
- Feature request-add ability to disable insecure http HOT 2
- Tor Browser for iOS - Clear Data and Tab Security issue(s) HOT 1
- Use of Orbot forced; no toggle or other VPN options available HOT 1
- WebTunnel and Conjure support HOT 1
- [SECURITY][WARNING] Javascript ALWAYS enabled on Gold Security Level! HOT 3
- Memory Issues with Orbot HOT 1
- Implement Blue Copper
- Built-in translation plug-in HOT 1
- Link previews a potential security issue? HOT 2
- Command PhaseScriptExecution failed with a nonzero exit code HOT 1
- browser automation like puppeteer HOT 3
- Add and test fastlane metadata for simplified Chinese zh_CN HOT 1
- macOS support HOT 3
- Tofang 182 HOT 1
- 2
- Error: Could not connect to the server (Code - 1004 domain NSURLErrorDomain)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from onionbrowser.