Naituw/WBWebViewConsole
Naituw/WBWebViewConsole has 1,322 GitHub stars and 122 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-07 07:58 UTC. Last push 2017-08-08.
In-App debug console for your UIWebView & WKWebView
Measured star growth
- in 24h
- 0
- in 7 days
- Update delayed
- in 15 days
- Update delayed
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalWBWebViewConsole 
WBWebViewConsole is an In-App debug console for your UIWebView && WKWebView

Installation
WBWebViewConsole is available on CocoaPods. Just add the following to your project Podfile:
pod 'WBWebViewConsole', '~> 1.0'
Bugs are first fixed in master and then made available via a designated release. If you tend to live on the bleeding edge, you can use WBWebViewConsole from master with the following Podfile entry:
pod 'WBWebViewConsole', :git => 'https://github.com/Naituw/WBWebViewConsole.git'
Setup
- Make your own
UIWebVieworWKWebViewsubclass, and implement all methods inWBWebViewprotocol - Setup
JSBridgeandconsolewhen WebView inits - If you are using
UIWebView, inject userScript as early as possible after page loading. Otherwise, just useWKUserScriptto implement. - In
UIWebView'swebView:shouldStartLoadWithRequest:navigationTypeorWKWebView'swebView:decidePolicyForNavigationAction:decisionHandler- Pass the request to
-[JSBridge handleWebViewRequest:]and use the return value to decide whether the navigation should start
- Pass the request to
Usage
- Use
WBWebViewConsoleto manage all messagesaddMessage:type:level:source:- add message for specific type, level and source
clearMessage- empty all messages
sendMessage- input (eval) script
storeCurrentSelectedElementToJavaScriptVariable:completion:- save current selected element to a js variable
- Use
WBWebDebugConsoleViewControllerto display aWBWebViewConsoleinitWithConsole:- designated initializer for this class
setInitialCommand:- set the placeholder command
License
WBWebViewConsole is BSD-licensed. see the LICENSE file.
The files in the /Examples directory are licensed under a separate license as specified in Examples/README.md.
Explore related projects
freeCodeCamp/freeCodeCamp
freeCodeCamp.org's open-source codebase and curriculum. Learn math, programming, and computer science for free.
458,723 starsdonnemartin/system-design-primer
Learn how to design large-scale systems. Prep for the system design interview. Includes Anki flashcards.
377,267 starsreact/react
The library for web and native user interfaces.
252,366 starsvuejs/vue
This is the repo for Vue 2. For Vue 3, go to https://github.com/vuejs/core
212,629 stars