Skip to content

Commit

Permalink
合并SetoKaiba/Pxer的改动(217309b-b2bc225)
Browse files Browse the repository at this point in the history
  • Loading branch information
SetoKaiba authored and pea3nut committed Apr 20, 2017
1 parent e3fdc0c commit 39fd34d
Show file tree
Hide file tree
Showing 10 changed files with 84 additions and 84 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

## Bug发生时的地址

http://www.pixiv.net/member_illust.php?id=10009740
https://www.pixiv.net/member_illust.php?id=10009740

## Bug发生时Pxer的状态

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</p>


纯客户端JavaScript编写的[pixiv.net](http://www.pixiv.net)爬虫,上线一周内被使用上万次!
纯客户端JavaScript编写的[pixiv.net](https://www.pixiv.net)爬虫,上线一周内被使用上万次!

不仅人人可用,且代码经过精心注释可供参考~

Expand Down Expand Up @@ -39,8 +39,8 @@ Pxer最大作用是将pixiv.net网站(类似于花瓣网)中的图片作品

你可以通过下面流程快速体验Pxer的强大功能:

1.[Pixiv网站](http://www.pixiv.net)登陆注册一个账号
2. 打开“[机器猫 - 哆啦A梦](http://www.pixiv.net/search.php?s_mode=s_tag&word=%E3%83%89%E3%83%A9%E3%81%88%E3%82%82%E3%82%93%20000user)”的图片检索页面
1.[Pixiv网站](https://www.pixiv.net)登陆注册一个账号
2. 打开“[机器猫 - 哆啦A梦](https://www.pixiv.net/search.php?s_mode=s_tag&word=%E3%83%89%E3%83%A9%E3%81%88%E3%82%82%E3%82%93%20000user)”的图片检索页面
3. 在浏览器运行[pxer.user.js](http://pxer-app.pea3nut.org/pxer-master.user.js)代码(将代码文件复制到控制台运行或存成书签点击运行)
4. 操作页面中PxerUI界面

Expand Down
2 changes: 1 addition & 1 deletion build/user.jstpl.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// @description 可能是目前最好用的P站收图工具
// @grant none
// @noframes
// @include http://www.pixiv.net*<?=isDev?'\n// @include http://127.0.0.1/*\n// @include http://localhost/*':''?>
// @include https://www.pixiv.net*<?=isDev?'\n// @include http://127.0.0.1/*\n// @include http://localhost/*':''?>
// ==/UserScript==
javascript:void((function() {
// 环境变量
Expand Down
6 changes: 3 additions & 3 deletions dist/pxer-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -646,11 +646,11 @@ PxerHtmlParser.parseWorks = function (task) {
* */
PxerHtmlParser.getUrlList = function (task) {
if (task.type === "ugoira" || task.type === "illust" && !task.isMultiple) {
return ["http://www.pixiv.net/member_illust.php?mode=medium&illust_id=" + task.id];
return ["https://www.pixiv.net/member_illust.php?mode=medium&illust_id=" + task.id];
} else if (task.isMultiple) {
return ["http://www.pixiv.net/member_illust.php?mode=medium&illust_id=" + task.id, "http://www.pixiv.net/member_illust.php?mode=manga&illust_id=" + task.id, "http://www.pixiv.net/member_illust.php?mode=manga_big&page=0&illust_id=" + task.id];
return ["https://www.pixiv.net/member_illust.php?mode=medium&illust_id=" + task.id, "https://www.pixiv.net/member_illust.php?mode=manga&illust_id=" + task.id, "https://www.pixiv.net/member_illust.php?mode=manga_big&page=0&illust_id=" + task.id];
} else if (task.type === "manga" && !task.isMultiple) {
return ["http://www.pixiv.net/member_illust.php?mode=medium&illust_id=" + task.id, "http://www.pixiv.net/member_illust.php?mode=big&illust_id=" + task.id];
return ["https://www.pixiv.net/member_illust.php?mode=medium&illust_id=" + task.id, "https://www.pixiv.net/member_illust.php?mode=big&illust_id=" + task.id];
} else {
console.warn('miss task ' + task.id);
return [];
Expand Down
8 changes: 4 additions & 4 deletions pxer-dev.user.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/**
* Automatic generated by "user.build.js"
* */
// ==UserScript==
Expand All @@ -9,18 +9,18 @@
// @description 可能是目前最好用的P站收图工具
// @grant none
// @noframes
// @include http://www.pixiv.net*
// @include https://www.pixiv.net*
// @include http://127.0.0.1/*
// @include http://localhost/*
// ==/UserScript==
javascript:void((function() {
// 环境变量
window['PXER_URL'] =/**/"http://pxer-app.pea3nut.org/";//*/'';
window['PXER_URL'] =/**/"https://rawgit.com/SetoKaiba/Pxer/dev/";//*/'';
window['PXER_MODE'] ='dev';

// 引入入口文件
document.documentElement.appendChild(
document.createElement('script')
).src=window['PXER_URL']+'jsonp.js?'+(+new Date);

})());
})());
2 changes: 1 addition & 1 deletion pxer-master.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
// @description 可能是目前最好用的P站收图工具
// @grant none
// @noframes
// @include http://www.pixiv.net*
// @include https://www.pixiv.net*
// ==/UserScript==
javascript:void((function() {
// 环境变量
Expand Down
12 changes: 6 additions & 6 deletions src/app/class/PxerHtmlParser.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,17 +132,17 @@ PxerHtmlParser.getUrlList =function(task){
&& !task.isMultiple
)
){
return ["http://www.pixiv.net/member_illust.php?mode=medium&illust_id="+task.id];
return ["https://www.pixiv.net/member_illust.php?mode=medium&illust_id="+task.id];
}else if(task.isMultiple){
return [
"http://www.pixiv.net/member_illust.php?mode=medium&illust_id="+task.id,
"http://www.pixiv.net/member_illust.php?mode=manga&illust_id="+task.id,
"http://www.pixiv.net/member_illust.php?mode=manga_big&page=0&illust_id="+task.id
"https://www.pixiv.net/member_illust.php?mode=medium&illust_id="+task.id,
"https://www.pixiv.net/member_illust.php?mode=manga&illust_id="+task.id,
"https://www.pixiv.net/member_illust.php?mode=manga_big&page=0&illust_id="+task.id
];
}else if(task.type ==="manga" && !task.isMultiple){
return [
"http://www.pixiv.net/member_illust.php?mode=medium&illust_id="+task.id,
"http://www.pixiv.net/member_illust.php?mode=big&illust_id="+task.id,
"https://www.pixiv.net/member_illust.php?mode=medium&illust_id="+task.id,
"https://www.pixiv.net/member_illust.php?mode=big&illust_id="+task.id,
];
}else{
console.warn('miss task '+task.id);
Expand Down
16 changes: 8 additions & 8 deletions src/app/class/PxerPrinter.class.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class PxerPrinter{
class PxerPrinter{
constructor(config){

/**
Expand Down Expand Up @@ -183,8 +183,8 @@ PxerPrinter.defaultConfig =function(){
* */
PxerPrinter.getUgoira =function(works ,type='max'){
const tpl ={
"max" :"http://#domain#/img-zip-ugoira/img/#date#/#id#_ugoira1920x1080.zip",
"600p" :"http://#domain#/img-zip-ugoira/img/#date#/#id#_ugoira600x600.zip",
"max" :"https://#domain#/img-zip-ugoira/img/#date#/#id#_ugoira1920x1080.zip",
"600p" :"https://#domain#/img-zip-ugoira/img/#date#/#id#_ugoira600x600.zip",
};

var address =tpl[type];
Expand All @@ -205,9 +205,9 @@ PxerPrinter.getUgoira =function(works ,type='max'){
* */
PxerPrinter.getMultiple =function(works ,type='max'){
const tpl ={
"max" :"http://#domain#/img-original/img/#date#/#id#_p#index#.#fileFormat#",
"1200p" :"http://#domain#/c/1200x1200/img-master/img/#date#/#id#_p#index#_master1200.jpg",
"cover_600p" :"http://#domain#/c/600x600/img-master/img/#date#/#id#_p0_master1200.jpg",
"max" :"https://#domain#/img-original/img/#date#/#id#_p#index#.#fileFormat#",
"1200p" :"https://#domain#/c/1200x1200/img-master/img/#date#/#id#_p#index#_master1200.jpg",
"cover_600p" :"https://#domain#/c/600x600/img-master/img/#date#/#id#_p0_master1200.jpg",
};

var address =tpl[type];
Expand All @@ -234,8 +234,8 @@ PxerPrinter.getMultiple =function(works ,type='max'){
* */
PxerPrinter.getWorks =function (works ,type='max'){
const tpl ={
"max" :"http://#domain#/img-original/img/#date#/#id#_p0.#fileFormat#",
"600p" :"http://#domain#/c/600x600/img-master/img/#date#/#id#_p0_master1200.jpg",
"max" :"https://#domain#/img-original/img/#date#/#id#_p0.#fileFormat#",
"600p" :"https://#domain#/c/600x600/img-master/img/#date#/#id#_p0_master1200.jpg",
};

var address =tpl[type];
Expand Down
2 changes: 1 addition & 1 deletion src/test/old/test.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ <h1>Hello Pxer6!</h1>
<li>移除AD</li>
<li>优化P站</li>
<li>搜图快速搜索</li>
<li>http://www.pixiv.net/whitecube/user/6737048</li>
<li>https://www.pixiv.net/whitecube/user/6737048</li>
<li>页面500会导致丢失图片</li>
<li>关注画师也会启动Pxer</li>
</ul>
Expand Down
112 changes: 56 additions & 56 deletions src/test/tests.js

Large diffs are not rendered by default.

0 comments on commit 39fd34d

Please sign in to comment.