Skip to content

Commit

Permalink
remove inline elem on showcase
Browse files Browse the repository at this point in the history
  • Loading branch information
AlterTobi committed Oct 24, 2023
1 parent fbe8de7 commit 9cf5fd6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion wfes-Showcase.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
// @name Showcase
// @version 1.2.2
// @version 1.2.9
// @description Improve Wayfarer Showcase
// @author AlterTobi

(function() {
"use strict";

const itemSelector = ".showcase-gallery__item"; // for removing the user-select
const myCssId = "showcaseCSS";
const myStyle = `.gamelogo{
float: left;
Expand Down Expand Up @@ -86,6 +87,9 @@ IYqHgkTBHM2N/P+MPR7hIjB3OzN427/WvgQYAPTTeKqgtlNiAAAAAElFTkSuQmCC');
window.wfes.f.addCSS(myCssId, myStyle);
const showcase = window.wfes.g.showcase();
showDetails(showcase.list[0]);
window.wfes.f.waitForElem(itemSelector).then(elem=> {
elem.removeAttribute("style"); // remove all inline styles
});
}

let loadHomeTimerId = null;
Expand Down

0 comments on commit 9cf5fd6

Please sign in to comment.