evan
PD🧩 Plasmo Developers
•Created by evan on 10/29/2023 in #👟framework
CSUI main world on Firefox MV2 (Unexpected property "world" for scripting.registerContentScripts)
thx for letting me know 😔👍
56 replies
PD🧩 Plasmo Developers
•Created by evan on 10/29/2023 in #👟framework
CSUI main world on Firefox MV2 (Unexpected property "world" for scripting.registerContentScripts)
oh noooooo .........
56 replies
PD🧩 Plasmo Developers
•Created by evan on 10/29/2023 in #👟framework
CSUI main world on Firefox MV2 (Unexpected property "world" for scripting.registerContentScripts)
ohhh i see, thanks thats super helpful
56 replies
PD🧩 Plasmo Developers
•Created by evan on 10/29/2023 in #👟framework
CSUI main world on Firefox MV2 (Unexpected property "world" for scripting.registerContentScripts)
but if i can get past that, it should be all i need for this project
56 replies
PD🧩 Plasmo Developers
•Created by evan on 10/29/2023 in #👟framework
CSUI main world on Firefox MV2 (Unexpected property "world" for scripting.registerContentScripts)
the only noticeable difference is that it doesnt distinguish between advertisements - when an ad is playing, the youtube
getDuration()
functions return the video duration, but the DOM returns the ad duration56 replies
PD🧩 Plasmo Developers
•Created by evan on 10/29/2023 in #👟framework
CSUI main world on Firefox MV2 (Unexpected property "world" for scripting.registerContentScripts)
thanks for sending this, seems like its able to get and set the video time with low latency
56 replies
PD🧩 Plasmo Developers
•Created by evan on 10/29/2023 in #👟framework
CSUI main world on Firefox MV2 (Unexpected property "world" for scripting.registerContentScripts)
hmmmmmm i see, i guess i ll have to interact with the youtube video using the DOM instead of directly using JS in the page
56 replies
PD🧩 Plasmo Developers
•Created by evan on 10/29/2023 in #👟framework
CSUI main world on Firefox MV2 (Unexpected property "world" for scripting.registerContentScripts)
i could configure a bundler to help organize things, but i figured using plasmo would be easier at that point
56 replies
PD🧩 Plasmo Developers
•Created by evan on 10/29/2023 in #👟framework
CSUI main world on Firefox MV2 (Unexpected property "world" for scripting.registerContentScripts)
yeah i have a proof of concept using raw javascript lol, but its like a few hundred lines and styled with in-line css 💀
56 replies
PD🧩 Plasmo Developers
•Created by evan on 10/29/2023 in #👟framework
CSUI main world on Firefox MV2 (Unexpected property "world" for scripting.registerContentScripts)
oh thats super interesting hmm
56 replies
PD🧩 Plasmo Developers
•Created by evan on 10/29/2023 in #👟framework
CSUI main world on Firefox MV2 (Unexpected property "world" for scripting.registerContentScripts)
ah i have a bunch of UI stuff thats difficult to organize without svelte lol, so i figured plasmo would help with organization
56 replies
PD🧩 Plasmo Developers
•Created by evan on 10/29/2023 in #👟framework
CSUI main world on Firefox MV2 (Unexpected property "world" for scripting.registerContentScripts)
my end goal is to get the current video time, including milliseconds
56 replies
PD🧩 Plasmo Developers
•Created by evan on 10/29/2023 in #👟framework
CSUI main world on Firefox MV2 (Unexpected property "world" for scripting.registerContentScripts)
i didnt look through it carefully though, please let me know if you have any examples
56 replies
PD🧩 Plasmo Developers
•Created by evan on 10/29/2023 in #👟framework
CSUI main world on Firefox MV2 (Unexpected property "world" for scripting.registerContentScripts)
yes i actually scanned through your github a few months ago, but i didnt see any extensions that make use of the
#movie_player
object and its JS functions56 replies
PD🧩 Plasmo Developers
•Created by evan on 10/29/2023 in #👟framework
CSUI main world on Firefox MV2 (Unexpected property "world" for scripting.registerContentScripts)
im trying to achieve that by mounting a svelte module to the world context
56 replies
PD🧩 Plasmo Developers
•Created by evan on 10/29/2023 in #👟framework
CSUI main world on Firefox MV2 (Unexpected property "world" for scripting.registerContentScripts)
so my desired logic is to interact with the youtube
#movie_player
object56 replies
PD🧩 Plasmo Developers
•Created by evan on 10/29/2023 in #👟framework
CSUI main world on Firefox MV2 (Unexpected property "world" for scripting.registerContentScripts)
it looks like both
chrome.scripting
and chrome.scripting.registerContentScripts
exist, but im not sure what else i should be looking for56 replies
PD🧩 Plasmo Developers
•Created by evan on 10/29/2023 in #👟framework
CSUI main world on Firefox MV2 (Unexpected property "world" for scripting.registerContentScripts)
just to confirm, is this snippet of code above ^ working on your end (or expected to work)?
56 replies
PD🧩 Plasmo Developers
•Created by evan on 10/29/2023 in #👟framework
CSUI main world on Firefox MV2 (Unexpected property "world" for scripting.registerContentScripts)
firefox version 121 should be far past version 102 right, so it should have the scripting method available? i believe its the most recent stable version, but i can try reinstalling if you think itd help
56 replies