-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #264 from NymexData/development
Introducing v.1.1.0
- Loading branch information
Showing
11 changed files
with
17 additions
and
26 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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,23 +1,22 @@ | ||
// content.js | ||
function insertExtensionUI() { | ||
// Check if the extension UI is already inserted to avoid duplication | ||
|
||
if (!document.getElementById("theatherflix-extension")) { | ||
const extensionUI = document.createElement("div"); | ||
extensionUI.id = "theatherflix-extension"; | ||
// Insert your UI elements here (e.g., personalized recommendations, stars, etc.) | ||
// For this example, we'll just add a simple text. | ||
|
||
extensionUI.innerHTML = "<p>Personalized recommendations will appear here.</p>"; | ||
document.body.appendChild(extensionUI); | ||
} | ||
} | ||
|
||
// Listen for messages from the extension popup | ||
|
||
chrome.runtime.onMessage.addListener((message, sender, sendResponse) => { | ||
if (message === "showExtensionUI") { | ||
insertExtensionUI(); | ||
} | ||
}); | ||
|
||
// Inform the extension popup that the content script is ready | ||
|
||
chrome.runtime.sendMessage("contentScriptReady"); | ||
|
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