Skip to content

Commit

Permalink
Merge pull request #84 from eternal-flame-AD/upstream
Browse files Browse the repository at this point in the history
build dist; bump 7.0.11;
  • Loading branch information
_eternal_flame authored Jul 11, 2018
2 parents e2eaa26 + 4b64749 commit c251970
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 7 deletions.
2 changes: 1 addition & 1 deletion build/pxer-utility.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const Babel = require('babel-core');

module.exports.pxerURL ='https://pxer-app.pea3nut.org/';
module.exports.rootPath ='../';
module.exports.pxerVersion ='7.0.10';
module.exports.pxerVersion ='7.0.11';

module.exports.path2URL =function(path){
var url =module.exports.pxerURL;
Expand Down
2 changes: 1 addition & 1 deletion dist/launcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
~function () {
var libURL = /**/"dist/lib.js"; //*/'';
var supportURL = /**/"dist/support.js"; //*/'';
window['PXER_VERSION'] = /**/"7.0.10"; //*/'';
window['PXER_VERSION'] = /**/"7.0.11"; //*/'';

Promise.resolve().then(function () {
var script = document.createElement('script');
Expand Down
18 changes: 15 additions & 3 deletions dist/pxer-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ function denyNewAttr(obj) {
}
});
}

'use strict';

var PxerEvent = function () {
Expand Down Expand Up @@ -727,7 +728,7 @@ PxerHtmlParser.parseMediumHtml = function (_ref9) {

pw.domain = URLObj.domain;
pw.date = src.match(PxerHtmlParser.REGEXP['getDate'])[1];
pw.frames = meta['frames'];
pw.frames = meta['body']['frames'];
} else {
var _src = illustData.urls.original;
var _URLObj = parseURL(_src);
Expand All @@ -740,7 +741,7 @@ PxerHtmlParser.parseMediumHtml = function (_ref9) {

PxerHtmlParser.REGEXP = {
'getDate': /img\/((?:\d+\/){5}\d+)/,
'getInitData': /(?<=\()\{token:.*\}(?=\);)/
'getInitData': /\{token:.*\}(?=\);)/
};

PxerHtmlParser.HTMLParser = function (aHTMLString) {
Expand Down Expand Up @@ -1117,6 +1118,17 @@ PxerPrinter.defaultConfig = function () {
"ugoira_frames": "no" //[yes|no]
};
};
/**作品页跳过过滤 */
PxerPrinter.printAllConfig = function () {
return {
"manga_single": "max", //[max|600p|no]
"manga_multiple": "max", //[max|1200p|cover_600p|no]
"illust_single": "max", //[max|600p|no]
"illust_multiple": "max", //[max|1200p|cover_600p|no]
"ugoira_zip": "max", //[max|600p|no]
"ugoira_frames": "yes" //[yes|no]
};
};

/**
* 拼装动图原始地址
Expand Down Expand Up @@ -1648,7 +1660,7 @@ var PxerApp = function (_PxerEvent3) {
retry: 3,
thread: 8
};
_this9.ppConfig = PxerPrinter.defaultConfig(); //PxerPrinter
_this9.ppConfig = _this9.pageType.startsWith("works_") ? PxerPrinter.printAllConfig() : PxerPrinter.defaultConfig(); //PxerPrinter
_this9.pfConfig = PxerFilter.defaultConfig(); //PxerFilter

// 使用的PxerThreadManager实例
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": "pxer",
"version": "7.0.10",
"version": "7.0.11",
"description": "<p align=\"left\">\r \t<img alt=\"\" src=\"https://img.shields.io/badge/JavaScript-ES6-green.svg\" />\r \t<img alt=\"\" src=\"https://img.shields.io/badge/install-Greasemonkey-green.svg\" />\r \t<img alt=\"\" src=\"https://img.shields.io/badge/jQuery-No-red.svg\" />\r \t<img alt=\"\" src=\"https://img.shields.io/badge/Node.js-No-red.svg\" />\r \t<img alt=\"\" src=\"https://img.shields.io/npm/l/express.svg\" />\r </p>",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/launcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
~function(){
var libURL =/**/"src/app/lib.js";//*/'';
var supportURL =/**/"src/app/support.js";//*/'';
window['PXER_VERSION'] =/**/"7.0.10";//*/'';
window['PXER_VERSION'] =/**/"7.0.11";//*/'';

Promise.resolve().then(function(){
var script = document.createElement('script');
Expand Down

0 comments on commit c251970

Please sign in to comment.