Skip to content

Commit

Permalink
feat: release version 2.3.1 with fix for image viewport on cmanga and…
Browse files Browse the repository at this point in the history
… toptruyen
  • Loading branch information
quyentruong committed Jan 2, 2025
1 parent 412da92 commit 783bfd2
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 4 deletions.
4 changes: 4 additions & 0 deletions MangaMark_Vue/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ Summary
5. version timestamp follow the yyyy.MM.dd format
```

## 2.3.1 [2025.01.01]

- fix: image viewport for cmanga and toptruyen

## 2.3.0 [2024.12.28]

- perf: improve ads block
Expand Down
4 changes: 2 additions & 2 deletions MangaMark_Vue/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "mangamark",
"version": "2.3.0",
"version": "2.3.1",
"title": "MangaMark-Extension",
"copyright": "Copyright © 2024 Quyen Truong",
"copyright": "Copyright © 2025 Quyen Truong",
"author": "Quyen Truong",
"description": "Mark your manga as read",
"displayName": "Manga Mark",
Expand Down
4 changes: 4 additions & 0 deletions MangaMark_Vue/src/js/website/cmangaWebsite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ export default class CmangaWebsite implements Website {
const observer = new MutationObserver(callback)
function callback(mutations: MutationRecord[]): void {
for (let mutation of mutations) {
const imgTags = Array.from(document.querySelectorAll(".chapter_content img")) as HTMLImageElement[];
for (let imgTag of imgTags) {
imgTag.style.width = "100vw";
}
const selectedElement = document.querySelector('.chapter_list') as HTMLSelectElement;
if (mutation.target === selectedElement) {
const selectedOption = selectedElement.selectedOptions[0];
Expand Down
3 changes: 2 additions & 1 deletion MangaMark_Vue/src/js/website/toptruyenWebsite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ import Website from "./website";
export default class ToptruyenWebsite implements Website {
name = 'toptruyen';
getMangaOnRead() {
const imgTags = Array.from(document.querySelectorAll("img"));
const imgTags = Array.from(document.querySelectorAll(".list-image-detail .page-chapter img")) as HTMLImageElement[];
for (let imgTag of imgTags) {
imgTag.style.position = "static";
imgTag.style.width = "100vw";
}
let fTitleChapter = document.title.split("Chap")

Expand Down
2 changes: 1 addition & 1 deletion updates.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<gupdate xmlns="http://www.google.com/update2/response" protocol="2.0">
<app appid="fdmcgbkgpjiggcfpoehpfkiapofheada">
<updatecheck codebase="https://github.com/quyentruong/MangaMark-Extension/releases/latest/download/mangamark.v2.3.0.crx" version="2.3.0"/>
<updatecheck codebase="https://github.com/quyentruong/MangaMark-Extension/releases/latest/download/mangamark.v2.3.1.crx" version="2.3.1"/>
</app>
</gupdate>

0 comments on commit 783bfd2

Please sign in to comment.