MCPcopy Create free account
hub / github.com/The-CodingSloth/haha-funny-leetcode-extension / sendUserSolvedMessage

Function sendUserSolvedMessage

background.ts:16–23  ·  view source on GitHub ↗
(languageUsed: string)

Source from the content-addressed store, hash-verified

14 url.includes("/submissions/detail/") && url.includes("/check/")
15
16const sendUserSolvedMessage = (languageUsed: string) => {
17 chrome.tabs.query({ active: true, currentWindow: true }, function (tabs) {
18 chrome.tabs.sendMessage(tabs[0].id, {
19 action: "userSolvedProblem",
20 language: languageUsed
21 })
22 })
23}
24
25const sendUserFailedMessage = () => {
26 chrome.tabs.query({ active: true, currentWindow: true }, function (tabs) {

Callers 1

checkIfUserSolvedProblemFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected