MCPcopy Create free account
hub / github.com/Yantesoft/LinuxdoAssistant / findFallbackInsertPosition

Function findFallbackInsertPosition

linuxdo-helper.user.js:406–410  ·  view source on GitHub ↗

* 查找备用插入位置 * @returns {HTMLElement|null} 备用位置元素或null

()

Source from the content-addressed store, hash-verified

404 * @returns {HTMLElement|null} 备用位置元素或null
405 */
406 function findFallbackInsertPosition() {
407 return document.querySelector(SELECTORS.headerButtons) ||
408 document.querySelector(SELECTORS.headerIcons) ||
409 document.querySelector(SELECTORS.headerDropdown)?.parentElement;
410 }
411
412 /**
413 * 将开关按钮插入到页面中

Callers 1

insertSwitchButtonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected