MCPcopy Create free account

hub / github.com/andreadev-it/stacking-contexts-inspector / functions

Functions99 in github.com/andreadev-it/stacking-contexts-inspector

↓ 14 callersFunctiongetScriptConnection
* Get a script connection, and if there is no script associated with the tab, it injects it. * * @param {string} scriptId * @param {number} tabId
src/scripts/background.js:94
↓ 13 callersFunctiongetConnection
()
src/scripts/components/ConnectionContext.js:31
↓ 4 callersMethodaddChild
* Adds a static context as a children of this context * * @param {StackingContext} context
src/scripts/classes/StackingContext.js:45
↓ 3 callersFunctionelementFromIndex
(container, index)
src/scripts/utils/utils.js:98
↓ 3 callersFunctiongetPassedChecks
(element, pseudo)
src/scripts/utils/DOMTraversal.js:115
↓ 3 callersFunctionnotifyVisibilityChange
(status)
src/scripts/components/ConnectionContext.js:9
↓ 2 callersFunctioninitExtensionSettings
* Initialize the settings inside local storage to their default values
src/scripts/background.js:18
↓ 2 callersFunctionisValuableContainer
(container)
src/scripts/utils/utils.js:24
↓ 2 callersFunctionloadSettings
()
src/scripts/components/SettingsContext.js:17
↓ 2 callersFunctionopenContext
(contextToOpen, index)
src/scripts/components/ContextsTree/ContextsTree.js:53
↓ 2 callersFunctionrefreshContexts
()
src/scripts/components/DataContext.js:21
↓ 2 callersFunctionsetContexts
(contextList)
src/scripts/components/DataContext.js:14
↓ 2 callersFunctionupdateDevtoolsPageStatus
* Update the devtools pages visibility status in order to decide whether to start or stop the DOM observer * * @param {number} tabId The tab id *
src/scripts/background.js:233
↓ 1 callersFunctionanalysePage
()
src/scripts/components/PanelContent/PanelContent.js:27
↓ 1 callersFunctioncancelHighlight
()
src/scripts/components/Context/Context.js:43
↓ 1 callersFunctioncancelHighlight
()
src/scripts/components/ContextsContainer/ContextsContainer.js:20
↓ 1 callersFunctioncloseContext
(contextToClose, index)
src/scripts/components/ContextsTree/ContextsTree.js:67
↓ 1 callersFunctiondisconnectObserver
* Just a utility function to allow adding and removing it as an event listener
src/scripts/content.js:241
↓ 1 callersMethodexec
* Executes the check callback on the element passed as a parameter. Returns wether or not this Node creates a static context. * * @param {N
src/scripts/classes/ContextChecks.js:28
↓ 1 callersFunctiongenerateContextTree
(contextsList)
src/scripts/utils/utils.js:7
↓ 1 callersFunctiongetContextIdFromNode
* Find the stacking context that contains a specific node as a child of its element. If the node creates a stacking context, return it. * * @param
src/scripts/content.js:110
↓ 1 callersFunctiongetNodeFromPath
(path)
src/scripts/utils/utils.js:94
↓ 1 callersFunctiongetPathFromNode
(node)
src/scripts/utils/utils.js:47
↓ 1 callersFunctiongetRelativePosition
* Get the relative position of a specific element in the page (iframes included) * * @param {StackingContext} context * @return {Object} The relat
src/scripts/content.js:68
↓ 1 callersFunctiongetSVGHTML
Get the svg element as a string from a file source
src/scripts/components/SVG.js:12
↓ 1 callersFunctionhandleInspectedElement
()
src/scripts/components/SidebarContent/SidebarContent.js:38
↓ 1 callersFunctionhasTraversableShadowDOM
* Check whether or not this element has an open shadow DOM * * @param {Node} element The element to be checked * @returns {boolean}
src/scripts/utils/DOMTraversal.js:105
↓ 1 callersFunctionhighlightContext
()
src/scripts/components/TreeItem/TreeItem.js:16
↓ 1 callersFunctioninit
* Initialization method
src/scripts/background.js:297
↓ 1 callersFunctioninitHighlightDOM
* Creates the element that will be used to highlight the contexts in the page. * * @return {Node} The actual DOM element with coherent styles appli
src/scripts/content.js:36
↓ 1 callersFunctioninjectScript
* Inject the content script into a tab
src/scripts/background.js:79
↓ 1 callersFunctionisTraversableIframe
* Check if an element is an iframe that exposes its content to javascript * * @param {Node} element The element to be checked * @returns {boolean}
src/scripts/utils/DOMTraversal.js:93
↓ 1 callersFunctionlinkChildren
(context)
src/scripts/utils/utils.js:10
↓ 1 callersFunctionloadExtensionSettings
* Load the extension settings * * @returns {Promise<Object>}
src/scripts/background.js:27
↓ 1 callersFunctionrefreshContextsCache
()
src/scripts/components/SidebarContent/SidebarContent.js:60
↓ 1 callersFunctionsaveSettings
(settings)
src/scripts/components/SettingsContext.js:24
↓ 1 callersFunctionselectContext
(context)
src/scripts/components/ContextsTree/ContextsTree.js:84
↓ 1 callersFunctionsendDOMChangedWarning
* Send a DOM Changed warning to the extension panel and sidebar
src/scripts/content.js:333
↓ 1 callersFunctionsetShouldUpdate
(value)
src/scripts/components/ConnectionContext.js:23
↓ 1 callersFunctionsetShouldUpdateSettings
(value)
src/scripts/components/ConnectionContext.js:27
↓ 1 callersFunctionsetupDOMObserver
* Attach a mutation observer to the DOM and notify the extension that the contexts should be refreshed
src/scripts/content.js:212
↓ 1 callersFunctionstartDOMObserver
* Start the DOM Observer * * @param {number} tabId
src/scripts/background.js:194
↓ 1 callersFunctionstopDOMObserver
* Stop the DOM Observer * * @param {number} tabId
src/scripts/background.js:205
↓ 1 callersFunctionsvgFromString
Get the single svg element from a string that may contain also other elements
src/scripts/components/SVG.js:5
↓ 1 callersMethodtoJSON
* This will convert a stacking context to a JSON-friendly object in order to pass it to the background script and the devtools panel and sidebar.
src/scripts/classes/StackingContext.js:54
↓ 1 callersFunctiontraverse
* Utility method to traverse a DOM element and check if it's a stacking context. It's recursive and * will traverse all the children down the tree.
src/scripts/utils/DOMTraversal.js:16
↓ 1 callersFunctionundoHighlightContext
()
src/scripts/components/TreeItem/TreeItem.js:21
FunctionConnectionContextProvider
({ scriptId, context, children })
src/scripts/components/ConnectionContext.js:17
FunctionContextsContainer
({container, noHighlight, delegatedClass, ...props})
src/scripts/components/ContextsContainer/ContextsContainer.js:7
FunctionOptionBarSeparator
()
src/scripts/components/OptionBarSeparator/OptionBarSeparator.js:5
FunctionPanelSettings
({className="", ...props})
src/scripts/components/PanelSettings/PanelSettings.js:7
FunctionSVG
({src, ...props})
src/scripts/components/SVG.js:20
FunctionSection
({ title, buttons, children })
src/scripts/components/Section/Section.js:6
FunctionSpinner
({ position='absolute', width=100, height=100 })
src/scripts/components/Spinner/Spinner.js:8
FunctionanalysePage
* Analyzes the page related to a specific tab id and returns a JSON description of the stacking contexts. * * @param {number} tabId * @returns {A
src/scripts/background.js:114
FunctionanalysePage
* Analyse the page and initialize the 'allContexts' and 'rootContext' variables.
src/scripts/content.js:17
Functioncallback
(mutationsList, observer)
src/scripts/content.js:217
FunctioncheckboxClicked
(event)
src/scripts/components/PanelSettings/PanelSettings.js:15
FunctioncleanContexts
()
src/scripts/components/DataContext.js:32
Functioncleanup
()
src/scripts/components/SidebarContent/SidebarContent.js:72
Methodconstructor
* Creates a new Stacking Context object * * @param {Node} element * @param {boolean} isInIframe * @param {Node} frame * @
src/scripts/classes/StackingContext.js:31
Methodconstructor
* Creates a new ContextsContainer * * @param {string} name The container name * @param {Node} element The element related to this cont
src/scripts/classes/ContextsContainer.js:26
Methodconstructor
(description, callback)
src/scripts/classes/ContextChecks.js:13
FunctiondetectLastInspectedElement
* Instruct the content script related to a specific tab to get the details about the last inspected element. * * @param {number} tabId * @param {
src/scripts/background.js:165
FunctiondetectLastInspectedElement
* Detect which node was tagged as "last inspected" from the devtools, and initialize the related variable.
src/scripts/content.js:152
FunctiongetAllContextsJSON
* Returns a copy of all the contexts converted to JSON. * * @return {Array} list of all contexts converted to JSON.
src/scripts/content.js:26
FunctiongetContextsFromPage
()
src/scripts/utils/DOMTraversal.js:139
FunctiongetInspectedElementDetails
* Get some details about the last selected element and its context * * @param {number} tabId * @returns {Object} The element details
src/scripts/background.js:176
FunctiongetInspectedElementDetails
* Get some details about the last inspected element. * * @returns {Object} An object containing the id of the context associated to the element and
src/scripts/content.js:173
FunctiongetPageFrames
()
src/scripts/components/DataContext.js:36
FunctiongetPageFramesSources
(tabId)
src/scripts/background.js:183
FunctiongetPageFramesSources
* Get all the iframes sources, to implement inspection on iframes * * @return {Array<string>} All the iframes src attributes
src/scripts/content.js:201
FunctiongetPathFromContext
(tabId, contextId)
src/scripts/background.js:154
FunctiongetPathFromContext
* Returns a path to get the element of a specific context even if it is inside an iframe or shadow DOM * * @param {Integer} contextId * @returns
src/scripts/content.js:144
FunctionhandleToggle
(event)
src/scripts/components/TreeItem/TreeItem.js:30
FunctionhighlightContext
* Highlight a context on a specific page. * * @param {number} tabId * @param {number} contextId The id of the context to be highlighted
src/scripts/background.js:128
FunctionhighlightContext
* Highlight the DOM Element related to a context. * * @param {number} id The id of the context to be highlighted.
src/scripts/content.js:51
FunctionhighlightNode
()
src/scripts/components/Context/Context.js:36
FunctionhighlightNode
()
src/scripts/components/ContextsContainer/ContextsContainer.js:13
FunctioninspectNode
()
src/scripts/components/Context/Context.js:18
MethodisBeingInspected
()
src/scripts/classes/TabStatus.js:13
FunctionisImportantMutation
* Check whether or not we're interested in this mutation and want to send a warning in the extension panel and sidebar * * @param {MutationRecord}
src/scripts/content.js:287
FunctionisInternalMutation
* Check whether a specific mutation found by the observer was caused by our own extension or was generated by the page * * @param {MutationRecord}
src/scripts/content.js:309
FunctionnotifySettingsChanged
* Send a message to the extension panels to warn that the contexts should be refreshed.
src/scripts/background.js:44
FunctiononHandlerError
* Handle the background handler errors (right now it just prints them to the console)
src/scripts/background.js:271
FunctionpaintOrderFunction
(a, b)
src/scripts/components/OrderedContextsList/OrderedContextsList.js:5
FunctionsaveExtensionSettings
* Save the new settings in the local chrome extension storage * * @param {Object} newSettings The updated settings * @returns {Promise}
src/scripts/background.js:62
FunctionscrollToContext
* Scrolls the page related to a specific tab id in order to show a context. * * @param {number} tabId * @param {number} contextId
src/scripts/background.js:149
FunctionscrollToContext
* Scroll the page to show the element related to a specific context. * * @param {number} id The context id.
src/scripts/content.js:100
FunctionscrollToNode
()
src/scripts/components/Context/Context.js:31
FunctionsendDOMChangedWarning
* Send a message to the extension panels to warn that the contexts should be refreshed.
src/scripts/background.js:214
FunctionshouldInsert
(context)
src/scripts/components/ContextsTree/ContextsTree.js:91
FunctionshouldShowToggle
()
src/scripts/components/TreeItem/TreeItem.js:26
FunctionstartDOMObserver
* Start observing the changes in the DOM
src/scripts/content.js:253
FunctionstopDOMObserver
* Stop observing the changes in the DOM
src/scripts/content.js:275
MethodtoJSON
* @returns A JSON-friendly object to represent this container
src/scripts/classes/ContextsContainer.js:37
FunctiontoggleSettings
()
src/scripts/components/PanelContent/PanelContent.js:32
FunctionundoHighlightContext
* Remove the highlight that was set on the context. * * @param {number} tabId
src/scripts/background.js:138
FunctionundoHighlightContext
* Remove the highlight element from the page.
src/scripts/content.js:90