ユーザーエージェントの取得
let js = "navigator.userAgent"
URLの取得
let js = "document.URL"
タイトルの取得
let js = "document.title"
アンカーを指定してWebView内で画面遷移
let anchor = "#start"
let js = "window.location.hash = \"\(anchor)\""
ズームの禁止
let js = "var meta = document.createElement('meta');" + "meta.name = 'viewport';" + "meta.content = 'width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no';" + "var head = document.getElementsByTagName('head')[0];" + "head.appendChild(meta);"
ローカルストレージクリア
let js = "localStorage.clear();"
ユーザーのドラッグした、選択範囲の取得
let js = "window.getSelection().toString()"
ロングタップによるActionSheetを表示させない
let js = "document.documentElement.style.webkitTouchCallout='none';"