-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
got the pane to grab the dev info URL and trying to do things
- Loading branch information
Jon McLaren
committed
Feb 1, 2019
1 parent
66ee912
commit 379a762
Showing
5 changed files
with
142 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,26 @@ | ||
console.log("hsinspector js loaded!"); | ||
console.log("hsinspector js loaded!"); | ||
|
||
var devInfoLinks = document.querySelectorAll(".hs-tools-menu a"); | ||
|
||
devInfoLinks.forEach(function(el,i){ | ||
var linkURL = el.getAttribute("href"); | ||
var linkText = el.textContent; | ||
if (linkText.includes("Developer Info")){ | ||
console.log(linkText,linkURL); | ||
chrome.runtime.sendMessage({devInfoURL: linkURL}, function(response) { | ||
console.log(response.farewell); | ||
}); | ||
} | ||
|
||
|
||
|
||
}); | ||
|
||
/* | ||
function ready(fn) { | ||
if (document.attachEvent ? document.readyState === "complete" : document.readyState !== "loading"){ | ||
fn(); | ||
} else { | ||
document.addEventListener('DOMContentLoaded', fn); | ||
} | ||
}*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters