Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Signed-off-by: wexavier <[email protected]>
  • Loading branch information
wexavier committed Aug 5, 2020
1 parent 0f72e24 commit 4a3c970
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion GelbooruImageViewer.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -945,7 +945,7 @@ Main = {
let a, id, alt;
if (!(typeof node === "object" && node.nodeType === 1)) return;
if (node.tagName === "LI" && String(node.id)[0] === "p" && ~String(node.className).indexOf("creator-id-")) return setTimeout(Main.myImuoto, 0, node);
if (site.gelbooru && node.classList.contains("thumbnail-preview")) node = Main.gelbooruFix(node);
if (site.gelbooru && node.classList.contains("thumbnail-preview") && node.tagName !== "IMG") node = Main.gelbooruFix(node);
if (node.matches(Main.sel) && (a = node.firstElementChild) && !a.dataset.full) {
alt = $("img[alt]", node);
if (!(alt && (alt = alt.title || alt.alt)))
Expand Down Expand Up @@ -1048,6 +1048,7 @@ Main = {
img.removeAttribute(`data-${key}`);
}
const span = el.firstElementChild;
span.className = "thumb";
el.parentNode.replaceChild(span, el);
return span;
},
Expand Down

0 comments on commit 4a3c970

Please sign in to comment.