dotfiles/.js/com/reddit.js

20 lines
457 B
JavaScript
Raw Normal View History

// replace RES expando icons with reddit ones
(function() {
2016-09-10 16:50:13 +00:00
function fixExpandos() {
$("a.expando-button").each((i, el) => {
el = $(el);
if (!el.hasClass("selftext") && !el.hasClass("video")) {
el.removeClass("image");
el.removeClass("gallery");
el.addClass("video");
el.click(() => {
el.removeClass("image");
el.removeClass("gallery");
el.addClass("video");
2016-09-10 16:50:13 +00:00
});
}
});
}
setTimeout(fixExpandos, 50);
})();