diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index 6cdd04805..5abcd7d9c 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -7381,11 +7381,11 @@ thumb = $.el('a', { className: 'gal-thumb', href: post.file.URL, - target: '_blank' - }, title = title, { - 'data-id': Gallery.images.length, - 'data-post': $('a[title="Highlight this post"]', post.nodes.info).href + target: '_blank', + title: title }); + thumb.dataset.id = Gallery.images.length; + thumb.dataset.post = $('a[title="Highlight this post"]', post.nodes.info).href; thumbImg = post.file.thumb.cloneNode(false); thumbImg.style.cssText = ''; $.add(thumb, thumbImg); diff --git a/builds/crx/script.js b/builds/crx/script.js index 036ed4e55..f25e827fc 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -7400,11 +7400,11 @@ thumb = $.el('a', { className: 'gal-thumb', href: post.file.URL, - target: '_blank' - }, title = title, { - 'data-id': Gallery.images.length, - 'data-post': $('a[title="Highlight this post"]', post.nodes.info).href + target: '_blank', + title: title }); + thumb.dataset.id = Gallery.images.length; + thumb.dataset.post = $('a[title="Highlight this post"]', post.nodes.info).href; thumbImg = post.file.thumb.cloneNode(false); thumbImg.style.cssText = ''; $.add(thumb, thumbImg); diff --git a/src/Images/Gallery.coffee b/src/Images/Gallery.coffee index e2c031b6c..0657fa295 100644 --- a/src/Images/Gallery.coffee +++ b/src/Images/Gallery.coffee @@ -110,9 +110,9 @@ Gallery = className: 'gal-thumb' href: post.file.URL target: '_blank' - title = title - 'data-id': Gallery.images.length - 'data-post': $('a[title="Highlight this post"]', post.nodes.info).href + title: title + thumb.dataset.id = Gallery.images.length + thumb.dataset.post = $('a[title="Highlight this post"]', post.nodes.info).href thumbImg = post.file.thumb.cloneNode false thumbImg.style.cssText = ''