Skip to content

Commit

Permalink
移除id验证 修改少量UI
Browse files Browse the repository at this point in the history
  • Loading branch information
pea3nut committed Oct 28, 2016
1 parent b8bc66c commit 3364b57
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 18 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
</p>


纯客户端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)

## 快速链接

Expand Down
10 changes: 10 additions & 0 deletions lib/_htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<IfModule mod_rewrite.c>
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]
</IfModule>
3 changes: 1 addition & 2 deletions lib/pxer.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'){
Expand Down
2 changes: 1 addition & 1 deletion lib/style.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 5 additions & 7 deletions lib/template.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,18 @@ pxerDefinePxerConfig["PXER_TPL"]=`\
<div class="pxer-warn panel panel-default" pxer-window="warn" pxer-bind="hasFailTask" style="display: none;">
<table class="table">
<thead>
<thead class="t-head">
<tr>
<td>图片ID</td>
<td>失败原因</td>
<td>解决方案</td>
<td width="50" class="text-center"><button class="btn btn-default" pxer-button="selectAllfw">全选</button></td>
<td width="160" class="text-right">
<button class="btn btn-default btn-sm" pxer-button="again">重试选中</button>
<button class="btn btn-default btn-sm" pxer-button="selectAllfw">全选</button>
</td>
</tr>
</thead>
<tbody pxer-bind="failList"></tbody>
<tbody>
<tr>
<td class="text-right" colspan="4"><button class="btn btn-default" pxer-button="again">重试选中</button></td>
</tr>
</tbody>
</table>
</div>
Expand Down
5 changes: 5 additions & 0 deletions src/view/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,8 @@
#pxer .show-block{
display: block !important;
}


#pxer .pxer-warn .t-head{
font-weight: bold;
}
1 change: 1 addition & 0 deletions src/view/style.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 5 additions & 7 deletions src/view/template.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,18 @@ pxerDefinePxerConfig["PXER_TPL"]=`\
<div class="pxer-warn panel panel-default" pxer-window="warn" pxer-bind="hasFailTask" style="display: none;">
<table class="table">
<thead>
<thead class="t-head">
<tr>
<td>图片ID</td>
<td>失败原因</td>
<td>解决方案</td>
<td width="50" class="text-center"><button class="btn btn-default" pxer-button="selectAllfw">全选</button></td>
<td width="160" class="text-right">
<button class="btn btn-default btn-sm" pxer-button="again">重试选中</button>
<button class="btn btn-default btn-sm" pxer-button="selectAllfw">全选</button>
</td>
</tr>
</thead>
<tbody pxer-bind="failList"></tbody>
<tbody>
<tr>
<td class="text-right" colspan="4"><button class="btn btn-default" pxer-button="again">重试选中</button></td>
</tr>
</tbody>
</table>
</div>
Expand Down

0 comments on commit 3364b57

Please sign in to comment.