diff --git a/README.md b/README.md index 5c3c159..471c081 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,5 @@ The format used by Zip anon won't be supported because: Bugs ==== -- Cannot expand a file that was embedded in a post that was inlined. - fails to find files in new posts after a thread update - more to come \ No newline at end of file diff --git a/main.meta.js b/main.meta.js index 41192cb..9c52fc8 100644 --- a/main.meta.js +++ b/main.meta.js @@ -1,7 +1,7 @@ // ==UserScript== // @name PNGExtraEmbed // @namespace https://coom.tech/ -// @version 0.47 +// @version 0.51 // @description uhh // @author You // @match https://boards.4channel.org/* diff --git a/main.user.js b/main.user.js index 7726349..652bf4a 100644 --- a/main.user.js +++ b/main.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name PNGExtraEmbed // @namespace https://coom.tech/ -// @version 0.47 +// @version 0.51 // @description uhh // @author You // @match https://boards.4channel.org/* @@ -13453,6 +13453,14 @@ .hasembed { border-right: 3px dashed deeppink !important; } + +.expanded-image > .post > .file .fileThumb > img[data-md5] { + display: none; +} + +.expanded-image > .post > .file .fileThumb .full-image { + display: inline; +} `)); document.documentElement.insertBefore(customStyles, null); })(); diff --git a/src/main.ts b/src/main.ts index 4336f62..ea5fa99 100644 --- a/src/main.ts +++ b/src/main.ts @@ -407,6 +407,14 @@ customStyles.appendChild(document.createTextNode( .hasembed { border-right: 3px dashed deeppink !important; } + +.expanded-image > .post > .file .fileThumb > img[data-md5] { + display: none; +} + +.expanded-image > .post > .file .fileThumb .full-image { + display: inline; +} ` ));