Skip to content

Commit

Permalink
domains: avoid protocol-less script for Genius.com
Browse files Browse the repository at this point in the history
  • Loading branch information
iparamonau committed Nov 6, 2024
1 parent 78920b2 commit 54c45e5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions plugins/domains/rapgenius.com.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default {
var theme = options.getRequestOptions('players.theme', 'light');

return {
html: '<div id="rg_embed_link_' + id + '" class="rg_embed_link" data-song-id="' + id + '"></div><script src="//genius.com/songs/' + id + '/embed.js' +
html: '<div id="rg_embed_link_' + id + '" class="rg_embed_link" data-song-id="' + id + '"></div><script src="https://genius.com/songs/' + id + '/embed.js' +
(theme === 'dark' ? '?dark=1' : '') +'"></script>',

type: CONFIG.T.text_html,
Expand All @@ -40,8 +40,9 @@ export default {
}
},

tests: [{ skipMixins: ["favicon"]},
tests: [
"https://genius.com/Bruce-springsteen-4th-of-july-asbury-park-sandy-lyrics",
"https://genius.com/Beyonce-flawless-remix-lyrics"
"https://genius.com/Beyonce-flawless-remix-lyrics",
"https://genius.com/Mariah-carey-all-i-want-for-christmas-is-you-lyrics"
]
};

0 comments on commit 54c45e5

Please sign in to comment.