From 3364b57137f684984c8e6387e0faac5d856285e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8A=B1=E7=94=9FPeA?= <626954412@qq.com> Date: Fri, 28 Oct 2016 16:05:26 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4id=E9=AA=8C=E8=AF=81=20?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=B0=91=E9=87=8FUI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 +++- lib/_htaccess | 10 ++++++++++ lib/pxer.user.js | 3 +-- lib/style.min.css | 2 +- lib/template.js | 12 +++++------- src/view/style.css | 5 +++++ src/view/style.min.css | 1 + src/view/template.js | 12 +++++------- 8 files changed, 31 insertions(+), 18 deletions(-) create mode 100644 lib/_htaccess create mode 100644 src/view/style.min.css diff --git a/README.md b/README.md index d0ffd2d..2a45867 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,9 @@

-纯客户端JavaScript编写的[pixiv.net](http://www.pixiv.net)爬虫,上线一周内被上万次使用! +纯客户端JavaScript编写的[pixiv.net](http://www.pixiv.net)爬虫,上线一周内被使用上万次! + +![](http://pea.nutjs.com/wp-content/uploads/2016/10/pxer-gif.gif) ## 快速链接 diff --git a/lib/_htaccess b/lib/_htaccess new file mode 100644 index 0000000..498cc40 --- /dev/null +++ b/lib/_htaccess @@ -0,0 +1,10 @@ + + Options +FollowSymlinks + RewriteEngine On + + RewriteCond %{REQUEST_FILENAME} !-d + RewriteCond %{REQUEST_FILENAME} !-f + RewriteRule ^$ GUI/ [QSA,PT] + RewriteRule ^launcher\.js(.*)$ pxer.js.php$1 [QSA,PT] + RewriteRule ^launcher\.min\.js(.*)$ pxer.js.php$1 [QSA,PT] + \ No newline at end of file diff --git a/lib/pxer.user.js b/lib/pxer.user.js index 5e6165f..271534d 100644 --- a/lib/pxer.user.js +++ b/lib/pxer.user.js @@ -23,8 +23,7 @@ javascript:void((function() { document.createElement("script") ).src =window.pxerDefinePxerConfig['URL_ROOT']+"lib/launcher.js" - +"?pixiv_id="+document.cookie.match(/PHPSESSID=(\d+)/)[1] - +"&time="+(new Date()).getTime() + +"?time="+(new Date()).getTime() ; }; if(document.readyState !=='loading'){ diff --git a/lib/style.min.css b/lib/style.min.css index b5bb392..0b223a6 100644 --- a/lib/style.min.css +++ b/lib/style.min.css @@ -1 +1 @@ -#pxer{max-width:970px;width:100%;margin:0 auto}#pxer .pxer-nav{margin-bottom:0!important;background-color:#fff!important}#pxer .pxer-inf,#pxer .pxer-print{padding-top:12px}#pxer>*{background-color:#fff;border:1px solid #d6dee5;border-radius:5px;margin-top:10px}.list-group-item .form-group{margin-bottom:0!important}#pxer input[type="number"]{width:6em!important}#pxer .pxer-cinfig-inputgroup input[type='text']{width:5em!important;height:auto!important;padding:0 6px!important;margin-top:-5px!important;position:relative;top:2px}#pxer label strong{color:#761C19;margin:0 3px;font-size:1.2em}#pxer .pxer-sign-btn{margin:-1px 0 0 10px}#pxer .pxer-sign-btn .badge{margin:-25px 0 0 -15px;z-index:9999;position:relative}#pxer .pxer-warn{display:none}#pxer .pxer-warn thead{font-weight:bold}#pxer .pxer-warn tbody tr:nth-child(even){background:#f5f5f5}#pxer .show-block{display:block!important} \ No newline at end of file +#pxer{max-width:970px;width:100%;margin:0 auto}#pxer .pxer-nav{margin-bottom:0!important;background-color:#fff!important}#pxer .pxer-inf,#pxer .pxer-print{padding-top:12px}#pxer>*{background-color:#fff;border:1px solid #d6dee5;border-radius:5px;margin-top:10px}.list-group-item .form-group{margin-bottom:0!important}#pxer input[type="number"]{width:6em!important}#pxer .pxer-cinfig-inputgroup input[type='text']{width:5em!important;height:auto!important;padding:0 6px!important;margin-top:-5px!important;position:relative;top:2px}#pxer label strong{color:#761C19;margin:0 3px;font-size:1.2em}#pxer .pxer-sign-btn{margin:-1px 0 0 10px}#pxer .pxer-sign-btn .badge{margin:-25px 0 0 -15px;z-index:9999;position:relative}#pxer .pxer-warn{display:none}#pxer .pxer-warn thead{font-weight:bold}#pxer .pxer-warn tbody tr:nth-child(even){background:#f5f5f5}#pxer .show-block{display:block!important}#pxer .pxer-warn .t-head{font-weight:bold} \ No newline at end of file diff --git a/lib/template.js b/lib/template.js index 8c7775b..48ceff1 100644 --- a/lib/template.js +++ b/lib/template.js @@ -20,20 +20,18 @@ pxerDefinePxerConfig["PXER_TPL"]=`\ diff --git a/src/view/style.css b/src/view/style.css index d224a8c..98c5eba 100644 --- a/src/view/style.css +++ b/src/view/style.css @@ -58,3 +58,8 @@ #pxer .show-block{ display: block !important; } + + +#pxer .pxer-warn .t-head{ + font-weight: bold; +} \ No newline at end of file diff --git a/src/view/style.min.css b/src/view/style.min.css new file mode 100644 index 0000000..0b223a6 --- /dev/null +++ b/src/view/style.min.css @@ -0,0 +1 @@ +#pxer{max-width:970px;width:100%;margin:0 auto}#pxer .pxer-nav{margin-bottom:0!important;background-color:#fff!important}#pxer .pxer-inf,#pxer .pxer-print{padding-top:12px}#pxer>*{background-color:#fff;border:1px solid #d6dee5;border-radius:5px;margin-top:10px}.list-group-item .form-group{margin-bottom:0!important}#pxer input[type="number"]{width:6em!important}#pxer .pxer-cinfig-inputgroup input[type='text']{width:5em!important;height:auto!important;padding:0 6px!important;margin-top:-5px!important;position:relative;top:2px}#pxer label strong{color:#761C19;margin:0 3px;font-size:1.2em}#pxer .pxer-sign-btn{margin:-1px 0 0 10px}#pxer .pxer-sign-btn .badge{margin:-25px 0 0 -15px;z-index:9999;position:relative}#pxer .pxer-warn{display:none}#pxer .pxer-warn thead{font-weight:bold}#pxer .pxer-warn tbody tr:nth-child(even){background:#f5f5f5}#pxer .show-block{display:block!important}#pxer .pxer-warn .t-head{font-weight:bold} \ No newline at end of file diff --git a/src/view/template.js b/src/view/template.js index e1c53fc..335914c 100644 --- a/src/view/template.js +++ b/src/view/template.js @@ -20,20 +20,18 @@ pxerDefinePxerConfig["PXER_TPL"]=`\