Skip to content

theFuzzyWarble

:: a relic from the ancient land of Www..

  • home
  • music
  • code

UnderSkinning: a mixcloud player hack

Posted on October 19, 2020 - October 20, 2020 by fuzzy

I was playing around with integrating a mixcloud player in the blog and took a stab at trying to reskin the REACT component based player with javascript/css.

After a lot of trial and error and finally remembering about cross-site script security, I realized straight up DOM manipulation was out of the question.

SO.. I came up with UnderSkinning!

const mcPlayer_iFrame = jQuery('#text-3 > div > iframe')

jQuery(() => {
  mcPlayer_iFrame.parent()
    .parent()
    .css({
      "background-image": "url(https://fuzzywarble.com/wp-content/uploads/2020/10/ISOLATE_WITH_THIS--cover-full.png)",
      "background-blend-mode": "overlay",
      "background-size": "100% 180px",
      "background-repeat": "no-repeat"
    })

  mcPlayer_iFrame.parent()
    .css({
      "opacity": "80%"
    })
 })
})

Now I can create playlist skins if needed. If only I could figure out how to read events from the player…

Posted in codeTagged hacks, javascript, jquery, wordpress

Post navigation

The Orb – 30th Celebration @ Elsewhere, NYC
The P2P Web!

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Categories

  • code
  • music

Recent Posts

  • fuzzy FX test
  • The P2P Web!
  • UnderSkinning: a mixcloud player hack
  • The Orb – 30th Celebration @ Elsewhere, NYC

Tags

beaker decentralized web flickr hacks javascript jquery live performance music p2p photos wordpress

Recent Comments

    Archives

    • October 2020

    Meta

    • Log in
    • Entries feed
    • Comments feed
    • WordPress.org
    Proudly powered by WordPress | Theme: micro, developed by DevriX.