https://github.com/dequan1331/wkwebviewextension
An extension for WKWebView. Providing menuItems delete 、support protocol 、clear cache of iOS8 and so on.
https://github.com/dequan1331/wkwebviewextension
clearcache js menuitem nsurlprotocol uimenucontroller wkwebview
Last synced: 3 months ago
JSON representation
An extension for WKWebView. Providing menuItems delete 、support protocol 、clear cache of iOS8 and so on.
- Host: GitHub
- URL: https://github.com/dequan1331/wkwebviewextension
- Owner: dequan1331
- License: mit
- Created: 2018-03-10T06:05:22.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-03T11:48:29.000Z (over 6 years ago)
- Last Synced: 2025-06-17T03:18:51.565Z (4 months ago)
- Topics: clearcache, js, menuitem, nsurlprotocol, uimenucontroller, wkwebview
- Language: Objective-C
- Homepage:
- Size: 236 KB
- Stars: 184
- Watchers: 2
- Forks: 23
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
_**This repo will no longer be updated. The new versions has been moved to [HybridPageKit](https://github.com/dequan1331/HybridPageKit) as a submodule. Integrate ' HybridPageKit/WKWebViewExtension ' subspecs with Cocoapods.**_
***
# WKWebViewExtension
[Extended Reading](https://dequan1331.github.io/index-en.html) | [中文](./README_CN.md) | [扩展阅读](https://dequan1331.github.io/)
An extension for WKWebView .
Providing `WKWebView MenuItems delete` 、 `WKWebView support protocol` 、 `WKWebView clear cache or iOS8` and so on.
> Together with [ReusableNestingScrollview](https://github.com/dequan1331/ReusableNestingScrollview), sub repo of [HybridPageKit](https://github.com/dequan1331/HybridPageKit), which is a general sulotion of news App content page.
## Requirements
iOS 8.0 or later
## Installation1. CocoaPods
platform :ios, '8.0'
pod 'WKWebViewExtension'2. Cloning the repository
```objective-c
#import
```## Features
1. DeleteMenuItems `iOS11 this issue has been fixed `
WKWebView Support Delete System MenuItems
Delete System Items Without cut/copy/paste/delete
2. SupportProtocol
WKWebView Support Protocol Like UIWebView
3. SafeClearCache
WKWebView Support iOS8 Clear All Cache
4. SafeScrollToWKWebView Safe ScrollTo Specific Offset Without Blank Screen by Runloop
5. SafeEvaluateJSSafe Evaluate JS And Retainify Webview For CallBack, and Make Sure CallBack IS NOT null
6. ExternalNavigationDelegatesWKWebView Support Internal And Extenal Delegates
7. SyncConfigUA
Sync Config UA Without WKWebView
## LicensesAll source code is licensed under the [MIT License](https://github.com/dequan1331/WKWebViewExtension/blob/master/LICENSE).