Closed n-ce closed 1 month ago
Turns out It was silly of me to do this. I totally didn't realize that social media previews only read the html and dont run any scripts.
So if we really want to implement, we will have to convert the site to a server rendered page instead which is out of the scope of this project.
On the bright side I did get to know & fix the default og-image issue as well as find a way to dom reference meta name tag without using getElementById
on this endeavour.
Re-opening this, as it is solvable via edge functions. Has been already implemented by #187
Relevant Links
Update Strategy
lib/DOM
.setMetadata()
=> https://github.com/n-ce/ytify/blob/3418c4f64f17b9c56b0dcd2b99cbdb38146b30f6/Scripts/lib/functions.js#L84-L111