Skip to content

Commit

Permalink
🕑更新了作品发布时间数据
Browse files Browse the repository at this point in the history
  • Loading branch information
xuejianxianzun committed Jan 11, 2025
1 parent 9df3a91 commit d5023c6
Show file tree
Hide file tree
Showing 12 changed files with 171 additions and 39 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ TODO:日语文本需要加粗显示关键字,但是我不懂日语,所以现

- 自动合并系列小说

## next
## 17.3.2 2025/01/11

### ✨对“发现-推荐用户”页面进行了有限的支持

Expand Down Expand Up @@ -42,6 +42,8 @@ PS:该页面不区分插画和小说,也就是说只有这一个网址,没

`当作品属于一个系列时可用。`

### 🕑更新了作品发布时间数据

## 17.3.1 2024/12/29

### 😊鼠标放到作品缩略图上时,不再立即加载作品数据,改为必要时才加载
Expand Down
99 changes: 82 additions & 17 deletions dist/js/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -7793,13 +7793,15 @@ __webpack_require__.r(__webpack_exports__);
// 显示最近更新内容
class ShowWhatIsNew {
constructor() {
this.flag = '17.3.1';
this.flag = '17.3.2';
this.bindEvents();
}
bindEvents() {
window.addEventListener(_EVT__WEBPACK_IMPORTED_MODULE_4__.EVT.list.settingInitialized, () => {
// 消息文本要写在 settingInitialized 事件回调里,否则它们可能会被翻译成错误的语言
let msg = `
<span>${_Lang__WEBPACK_IMPORTED_MODULE_0__.lang.transl('_修复已知问题')}</span>
<br>
<span>${_Lang__WEBPACK_IMPORTED_MODULE_0__.lang.transl('_优化性能和用户体验')}</span>
`;
// <strong>
Expand Down Expand Up @@ -15780,9 +15782,14 @@ class CheckWarningMessage {
if (data.body.total === 0) {
return resolve(false);
}
// 获取到的数据是以会话为单位的,也就是最后三个发送消息的账号。包含了每个消息里的最后一条对话
// 如果与一个用户发送了多条消息,也只会有一条数据,而不会是多条数据
for (const msgData of data.body.message_threads) {
if (msgData.is_official === true &&
msgData.thread_name === 'pixiv事務局') {
// pixiv事務局 这个账号名称应该是不会变的。它是这个账号:
// https://www.pixiv.net/users/11
// 但是下面这个判断条件不清楚以后是否会发生变化
if (msgData.latest_content.includes('policies.pixiv.net') &&
msgData.latest_content.includes('14')) {
// 如果找到了官方账号发送的警告消息,则判断时间
Expand Down Expand Up @@ -21221,13 +21228,13 @@ class WorkPublishTime {
bindEvents() {
// 获取图像作品的数据
_utils_SecretSignal__WEBPACK_IMPORTED_MODULE_1__.secretSignal.register('ppdtask1', () => {
// 上次记录到 125640000
this.crawlData(125140000, 125647801);
// 上次记录到 126120000
this.crawlData(125650000, 126129860);
});
// 获取小说作品的数据
_utils_SecretSignal__WEBPACK_IMPORTED_MODULE_1__.secretSignal.register('ppdtask2', () => {
// 上次记录到 23690000
this.crawlData(23590000, 23695206, 'novels');
// 上次记录到 23790003
this.crawlData(23700000, 23795143, 'novels');
});
}
async crawlData(start, end, type = 'illusts') {
Expand Down Expand Up @@ -24937,12 +24944,12 @@ If you plan to do a lot of downloading, consider signing up for a secondary Pixi
'Загрузка <span class="key">вложенных</span> изображений в новеллах',
],
_其他优化: [
'其他优化',
'其他最佳化',
'Other optimizations',
'その他の最適化',
'기타 최적화',
'Другие оптимизации',
'其他优化',
'其他最佳化',
'Other optimizations.',
'その他の最適化',
'기타 최적화.',
'Другие оптимизации.',
],
_隐藏浏览器底部的下载栏: [
'隐藏浏览器底部的<span class="key">下载栏</span>',
Expand Down Expand Up @@ -25210,12 +25217,12 @@ If you plan to do a lot of downloading, consider signing up for a secondary Pixi
'Баг фикс',
],
_修复已知问题: [
'修复已知问题',
'修復已知問題',
'fix known issues',
'既知の問題を修正する',
'알려진 문제 수정',
'исправить известные проблемы',
'修复已知问题',
'修復已知問題',
'fix known issues.',
'既知の問題を修正する',
'알려진 문제 수정',
'исправить известные проблемы',
],
_不支持的浏览器: [
'你的浏览器不能正常使用这个扩展程序,主要原因可能是浏览器内核版本太低,或者存在兼容性问题。<br>建议您更换成最新版本的 Chrome 或 Edge 浏览器。',
Expand Down Expand Up @@ -44734,6 +44741,54 @@ const illustsData = [
[125620000, 1735349640000],
[125630001, 1735375800000],
[125640000, 1735393980000],
[125650000, 1735422840000],
[125660000, 1735455480000],
[125670000, 1735475700000],
[125680000, 1735494060000],
[125690000, 1735532760000],
[125700000, 1735556340000],
[125710000, 1735572060000],
[125720000, 1735604280000],
[125730000, 1735626540000],
[125740000, 1735642680000],
[125750000, 1735654860000],
[125760000, 1735659720000],
[125770000, 1735680900000],
[125780000, 1735703040000],
[125790000, 1735722120000],
[125800000, 1735737720000],
[125810001, 1735757040000],
[125820000, 1735793040000],
[125830000, 1735816200000],
[125840000, 1735832520000],
[125850001, 1735869720000],
[125860000, 1735894800000],
[125870000, 1735912620000],
[125880001, 1735938540000],
[125890000, 1735971420000],
[125900000, 1735991580000],
[125910000, 1736007840000],
[125920000, 1736045040000],
[125930000, 1736067600000],
[125940001, 1736083200000],
[125950000, 1736103360000],
[125960000, 1736144820000],
[125970000, 1736166480000],
[125980001, 1736183760000],
[125990000, 1736226180000],
[126000000, 1736251380000],
[126010000, 1736269200000],
[126020000, 1736312880000],
[126030000, 1736338260000],
[126040000, 1736356380000],
[126050000, 1736402040000],
[126060000, 1736426460000],
[126070000, 1736446080000],
[126080000, 1736490240000],
[126090000, 1736512860000],
[126100000, 1736532180000],
[126110000, 1736571000000],
[126120000, 1736593980000],
];


Expand Down Expand Up @@ -47120,6 +47175,16 @@ const novelData = [
[23670000, 1735113206000],
[23680000, 1735220356000],
[23690000, 1735360245000],
[23700000, 1735477399000],
[23710000, 1735576636000],
[23720000, 1735657209000],
[23730002, 1735782436000],
[23740000, 1735903914000],
[23750000, 1736009388000],
[23760000, 1736138552000],
[23770000, 1736260921000],
[23780000, 1736419332000],
[23790003, 1736560359000],
];


Expand Down
2 changes: 1 addition & 1 deletion dist/js/content.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Powerful Pixiv Downloader",
"version": "17.3.1",
"version": "17.3.2",
"manifest_version": 3,
"description": "强大的 Pixiv 批量下载器。Powerful Pixiv batch downloader. 強力な Pixiv ダウンローダー。",
"icons": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "powerful-pixiv-downloader",
"version": "17.3.1",
"version": "17.3.2",
"description": "强大的 Pixiv 批量下载器。Powerful Pixiv batch downloader. 強力な Pixiv ダウンローダー。",
"repository": "https://github.com/xuejianxianzun/PixivBatchDownloader",
"author": "xuejianxianzun",
Expand Down
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Powerful Pixiv Downloader",
"version": "17.3.1",
"version": "17.3.2",
"manifest_version": 3,
"description": "强大的 Pixiv 批量下载器。Powerful Pixiv batch downloader. 強力な Pixiv ダウンローダー。",
"icons": {
Expand Down
4 changes: 3 additions & 1 deletion src/ts/ShowWhatIsNew.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@ class ShowWhatIsNew {
this.bindEvents()
}

private flag = '17.3.1'
private flag = '17.3.2'

private bindEvents() {
window.addEventListener(EVT.list.settingInitialized, () => {
// 消息文本要写在 settingInitialized 事件回调里,否则它们可能会被翻译成错误的语言
let msg = `
<span>${lang.transl('_修复已知问题')}</span>
<br>
<span>${lang.transl('_优化性能和用户体验')}</span>
`

Expand Down
5 changes: 5 additions & 0 deletions src/ts/download/CheckWarningMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,16 @@ class CheckWarningMessage {
return resolve(false)
}

// 获取到的数据是以会话为单位的,也就是最后三个发送消息的账号。包含了每个消息里的最后一条对话
// 如果与一个用户发送了多条消息,也只会有一条数据,而不会是多条数据
for (const msgData of data.body.message_threads) {
if (
msgData.is_official === true &&
msgData.thread_name === 'pixiv事務局'
) {
// pixiv事務局 这个账号名称应该是不会变的。它是这个账号:
// https://www.pixiv.net/users/11
// 但是下面这个判断条件不清楚以后是否会发生变化
if (
msgData.latest_content.includes('policies.pixiv.net') &&
msgData.latest_content.includes('14')
Expand Down
8 changes: 4 additions & 4 deletions src/ts/filter/WorkPublishTime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,14 @@ class WorkPublishTime {
private bindEvents() {
// 获取图像作品的数据
secretSignal.register('ppdtask1', () => {
// 上次记录到 125640000
this.crawlData(125140000, 125647801)
// 上次记录到 126120000
this.crawlData(125650000, 126129860)
})

// 获取小说作品的数据
secretSignal.register('ppdtask2', () => {
// 上次记录到 23690000
this.crawlData(23590000, 23695206, 'novels')
// 上次记录到 23790003
this.crawlData(23700000, 23795143, 'novels')
})
}

Expand Down
24 changes: 12 additions & 12 deletions src/ts/langText.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3637,12 +3637,12 @@ If you plan to do a lot of downloading, consider signing up for a secondary Pixi
'Загрузка <span class="key">вложенных</span> изображений в новеллах',
],
_其他优化: [
'其他优化',
'其他最佳化',
'Other optimizations',
'その他の最適化',
'기타 최적화',
'Другие оптимизации',
'其他优化',
'其他最佳化',
'Other optimizations.',
'その他の最適化',
'기타 최적화.',
'Другие оптимизации.',
],
_隐藏浏览器底部的下载栏: [
'隐藏浏览器底部的<span class="key">下载栏</span>',
Expand Down Expand Up @@ -3910,12 +3910,12 @@ If you plan to do a lot of downloading, consider signing up for a secondary Pixi
'Баг фикс',
],
_修复已知问题: [
'修复已知问题',
'修復已知問題',
'fix known issues',
'既知の問題を修正する',
'알려진 문제 수정',
'исправить известные проблемы',
'修复已知问题',
'修復已知問題',
'fix known issues.',
'既知の問題を修正する',
'알려진 문제 수정',
'исправить известные проблемы',
],
_不支持的浏览器: [
'你的浏览器不能正常使用这个扩展程序,主要原因可能是浏览器内核版本太低,或者存在兼容性问题。<br>建议您更换成最新版本的 Chrome 或 Edge 浏览器。',
Expand Down
48 changes: 48 additions & 0 deletions src/ts/store/WorkPublishTimeIllusts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12564,4 +12564,52 @@ export const illustsData = [
[125620000, 1735349640000],
[125630001, 1735375800000],
[125640000, 1735393980000],
[125650000, 1735422840000],
[125660000, 1735455480000],
[125670000, 1735475700000],
[125680000, 1735494060000],
[125690000, 1735532760000],
[125700000, 1735556340000],
[125710000, 1735572060000],
[125720000, 1735604280000],
[125730000, 1735626540000],
[125740000, 1735642680000],
[125750000, 1735654860000],
[125760000, 1735659720000],
[125770000, 1735680900000],
[125780000, 1735703040000],
[125790000, 1735722120000],
[125800000, 1735737720000],
[125810001, 1735757040000],
[125820000, 1735793040000],
[125830000, 1735816200000],
[125840000, 1735832520000],
[125850001, 1735869720000],
[125860000, 1735894800000],
[125870000, 1735912620000],
[125880001, 1735938540000],
[125890000, 1735971420000],
[125900000, 1735991580000],
[125910000, 1736007840000],
[125920000, 1736045040000],
[125930000, 1736067600000],
[125940001, 1736083200000],
[125950000, 1736103360000],
[125960000, 1736144820000],
[125970000, 1736166480000],
[125980001, 1736183760000],
[125990000, 1736226180000],
[126000000, 1736251380000],
[126010000, 1736269200000],
[126020000, 1736312880000],
[126030000, 1736338260000],
[126040000, 1736356380000],
[126050000, 1736402040000],
[126060000, 1736426460000],
[126070000, 1736446080000],
[126080000, 1736490240000],
[126090000, 1736512860000],
[126100000, 1736532180000],
[126110000, 1736571000000],
[126120000, 1736593980000],
]
10 changes: 10 additions & 0 deletions src/ts/store/WorkPublishTimeNovels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2369,4 +2369,14 @@ export const novelData = [
[23670000, 1735113206000],
[23680000, 1735220356000],
[23690000, 1735360245000],
[23700000, 1735477399000],
[23710000, 1735576636000],
[23720000, 1735657209000],
[23730002, 1735782436000],
[23740000, 1735903914000],
[23750000, 1736009388000],
[23760000, 1736138552000],
[23770000, 1736260921000],
[23780000, 1736419332000],
[23790003, 1736560359000],
]

0 comments on commit d5023c6

Please sign in to comment.