ShareLinks: stop injecting the guest-link button into form dialogs
The action-sheet fallback matched any dialog with 2+ buttons, which caught the Add to Collection dialog and stuck a Create guest link button next to OK. Skip containers that have a select/text input/ textarea, since real action sheets are just a list of buttons/links.
Cette révision appartient à :
@@ -423,6 +423,10 @@
|
||||
}
|
||||
|
||||
function looksLikeActionContainer(node) {
|
||||
if (node.querySelector('select, input:not([type="checkbox"]):not([type="radio"]), textarea')) {
|
||||
return false;
|
||||
}
|
||||
|
||||
var actions = Array.from(node.querySelectorAll('button, a, [role="menuitem"], [role="option"], .actionsheetMenuItem, .paperListButton'))
|
||||
.filter(isVisible);
|
||||
return actions.length >= 2 && actions.length <= 40;
|
||||
|
||||
+2
-2
@@ -13,8 +13,8 @@
|
||||
"changelog": "Initial release: ShareLink button on the item menu, temporary guest users confined by tag policy, expiring one-use links, admin dashboard with revoke, and a configurable guest lockdown that hides tag/genre/studio/cast links, the add-to-playlist and add-to-collection actions, and other plugins' UI.",
|
||||
"targetAbi": "10.11.0.0",
|
||||
"sourceUrl": "https://github.com/Franciskid/jellyfin-plugin-sharelinks/releases/download/v1.0.0.0/sharelinks_1.0.0.0.zip",
|
||||
"checksum": "b9d94ddab91e7078046711b77d6ef18b",
|
||||
"timestamp": "2026-07-07T00:00:00Z"
|
||||
"checksum": "d779dc06a710788d7db698f66d5690bc",
|
||||
"timestamp": "2026-07-07T20:12:00Z"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Référencer dans un nouveau ticket
Bloquer un utilisateur