Skip to content

Commit 140703b

Browse files
committed
release: v1.3.1
### Fixed - Right-click sends the post, not the raw file, on a supported site alias set in monloader such as *.donmai.us. ([#3](#3)) Thanks to @gary-host-laptop for the report (#3)
1 parent 7b601ad commit 140703b

7 files changed

Lines changed: 24 additions & 15 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## [v1.3.1] - 2026-07-31
4+
### Fixed
5+
- Right-click sends the post, not the raw file, on a supported site alias set in monloader such as *.donmai.us. ([#3](https://github.com/monbooru/monsender/issues/3))
6+
7+
Thanks to @gary-host-laptop for the report (https://github.com/monbooru/monsender/issues/3)
8+
39
## [v1.3.0] - 2026-07-26
410
### Added
511
- Right-click send now offers a toast to narrow the send to the pointed image. ([#3](https://github.com/monbooru/monsender/issues/3))

CONTRIBUTING.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Contributing
2+
3+
See [monbooru's CONTRIBUTING](https://github.com/monbooru/monbooru/blob/main/CONTRIBUTING.md);
4+
it covers all the monbooru repos, including this one.
5+
6+
Open issues for the browser extension here.

README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,6 @@ Build the per-browser bundles:
6767
node build.js # writes dist/chrome and dist/firefox
6868
```
6969

70-
## Attribution and license
70+
## Acknowledgements
7171

72-
monsender is licensed under **AGPL-3.0-or-later** (see `LICENSE`).
73-
74-
The in-page image detection uses code from [ushiro](https://github.com/gary-host-laptop/ushiro) by
75-
**gary-host-laptop**, and [behind!](https://github.com/kubuzetto/behind) by **kubuzetto**, originally
76-
under MPL-2.0. The MPL-2.0 notice is preserved in `LICENSE`.
72+
See [monbooru's acknowledgements](https://github.com/monbooru/monbooru#acknowledgements).

VERSION.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1.3.0
1+
v1.3.1

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "monsender",
3-
"version": "1.3.0",
3+
"version": "1.3.1",
44
"description": "Send the current page or its images to your monloader download queue.",
55
"private": true,
66
"type": "commonjs",

src/lib/sites.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,17 @@
2020

2121
// Pure: does any supported site match this URL's host? `sites` may be the
2222
// array or the { sites: [...] } envelope. Match the host exactly or as a
23-
// subdomain of an entry's example host; a substring would let a look-alike
24-
// (e621.net.evil.example) pass.
23+
// subdomain of an entry's example host or hosts aliases (monloader serves
24+
// a mirror like safebooru.donmai.us only there - the example names one
25+
// host); a substring would let a look-alike (e621.net.evil.example) pass.
2526
function matchHost(sites, url) {
2627
const host = hostOf(url);
2728
if (!host) return false;
2829
const list = Array.isArray(sites) ? sites : (sites && sites.sites) || [];
29-
return list.some((s) => {
30-
const exHost = hostOf(s && s.example);
31-
return !!exHost && (host === exHost || host.endsWith('.' + exHost));
32-
});
30+
const covers = (h) => !!h && (host === h || host.endsWith('.' + h));
31+
return list.some((s) =>
32+
covers(hostOf(s && s.example)) ||
33+
((s && s.hosts) || []).some((h) => covers(String(h).replace(/^www\./, ''))));
3334
}
3435

3536
const TTL_MS = 5 * 60 * 1000;

src/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifest_version": 3,
33
"name": "monsender",
4-
"version": "1.3.0",
4+
"version": "1.3.1",
55
"description": "Send the current page or its images to your monloader download queue.",
66
"permissions": ["activeTab", "scripting", "storage", "contextMenus"],
77
"optional_host_permissions": ["http://*/*", "https://*/*"],

0 commit comments

Comments
 (0)