Last active
March 9, 2019 18:33
-
-
Save Yiddishe-Kop/28b9c8a48888fdc7de15a3f6b548918b to your computer and use it in GitHub Desktop.
My custom code to modify my Wordpress Site
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
// change all html code tags to "ltr" | |
let codes = document.querySelectorAll("code"); | |
codes.forEach(code => { | |
code.setAttribute("dir", "ltr"); | |
}); | |
// change color of all "free" bubbles! | |
var bubbles = document.querySelectorAll(".badge-inner.new-bubble"); | |
bubbles.forEach(bubble => { | |
if (bubble.innerText == "חינם!") { | |
bubble.style.backgroundColor = "#1cbd00"; | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment