hide search-ui in shares

This commit is contained in:
ed 2025-10-14 20:12:26 +00:00
parent 6c53c75ab2
commit cca1f9b22b

View file

@ -1121,6 +1121,7 @@ var ACtx = !IPHONE && (window.AudioContext || window.webkitAudioContext),
dbg_kbd = /[?&]dbgkbd\b/.exec(sloc0), dbg_kbd = /[?&]dbgkbd\b/.exec(sloc0),
abrt_key = "", abrt_key = "",
can_shr = false, can_shr = false,
in_shr = false,
rtt = null, rtt = null,
srvinf = "", srvinf = "",
ldks = [], ldks = [],
@ -7227,7 +7228,7 @@ var treectl = (function () {
fun(); fun();
} }
if (can_shr && QS('#op_unpost.act') && (cdir.startsWith(SR + have_shr) || get_evpath().startsWith(SR + have_shr))) if (can_shr && in_shr && QS('#op_unpost.act'))
goto('unpost'); goto('unpost');
} }
@ -7252,6 +7253,8 @@ var treectl = (function () {
plain = [], plain = [],
seen = {}; seen = {};
in_shr = have_shr && top.startsWith(SR + have_shr);
if (ae && /^tr$/i.exec(ae.nodeName)) if (ae && /^tr$/i.exec(ae.nodeName))
if (ae = ae.querySelector('a[id]')) if (ae = ae.querySelector('a[id]'))
cid = ae.getAttribute('id'); cid = ae.getAttribute('id');
@ -7695,6 +7698,9 @@ function apply_perms(res) {
o[a].getAttribute('data-dep') != 'idx' || have_up2k_idx o[a].getAttribute('data-dep') != 'idx' || have_up2k_idx
) ? '' : 'none'; ) ? '' : 'none';
if (in_shr)
ebi('opa_srch').style.display = 'none';
var act = QS('#ops>a.act'); var act = QS('#ops>a.act');
if (act && act.style.display === 'none') if (act && act.style.display === 'none')
goto(); goto();