This commit is contained in:
@@ -222,6 +222,14 @@ function bareSummonCreateTuiApp(ctx, session) {
|
||||
this._sync()
|
||||
return [this, null]
|
||||
}
|
||||
if (tui.key.matches(msg, 'J')) {
|
||||
this.session.config.javascript =
|
||||
this.session.config.javascript === false
|
||||
this.status =
|
||||
this.session.config.javascript === false ? 'js off' : 'js on'
|
||||
if (this._tab().url) this._go(this._tab().url, { replace: true })
|
||||
return [this, null]
|
||||
}
|
||||
if (tui.key.matches(msg, 's')) {
|
||||
this.mode = this.mode === 'source' ? 'browse' : 'source'
|
||||
this._sync()
|
||||
@@ -348,7 +356,12 @@ function bareSummonCreateTuiApp(ctx, session) {
|
||||
var idx = this.session.current + 1
|
||||
var url = (tab && tab.url) || ''
|
||||
var title = (tab && tab.title) || ''
|
||||
var scripts = tab && tab.scriptsBlocked ? ' js:' + tab.scriptsBlocked : ''
|
||||
var jsOn = this.session.config && this.session.config.javascript !== false
|
||||
var scripts =
|
||||
' js:' +
|
||||
(jsOn ? 'on' : 'off') +
|
||||
(tab && tab.js && tab.js.ran ? '+' + tab.js.ran : '') +
|
||||
(tab && tab.scriptsBlocked ? '/' + tab.scriptsBlocked : '')
|
||||
var titleRaw =
|
||||
' summon [' +
|
||||
idx +
|
||||
@@ -430,7 +443,7 @@ function bareSummonCreateTuiApp(ctx, session) {
|
||||
'h/left back u forward r reload R reader s source\n' +
|
||||
'j/k scroll / find n/N next/prev a bookmark o marks\n' +
|
||||
't new tab w close [ ] tabs H home digits+Enter link #\n' +
|
||||
'JS is off. HTTP via ctx.httpFetch (allow/deny lists).\n\n' +
|
||||
'J toggle page JS (Bare VM / sandbox) HTTP via ctx.httpFetch\n\n' +
|
||||
'Press any key to close.'
|
||||
var boxed = st
|
||||
? st()
|
||||
|
||||
Reference in New Issue
Block a user