Skip to content

Commit

Permalink
Merge branch 'master' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
pea3nut committed Oct 7, 2016
2 parents 5b0ff4b + bfff8ab commit 8a0ac6e
Showing 1 changed file with 22 additions and 11 deletions.
33 changes: 22 additions & 11 deletions lib/pxer.user.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,33 @@
// ==UserScript==
// @name Pxer-6
// @version 6.0.2
// @namespace https://github.com/pea3nut/Pxer
// @author 花生PeA
// @description pixiv.net Tools
// @grant none
// @include http://www.pixiv.net/member_illust.php*
// @include http://www.pixiv.net/bookmark.php*
// @include http://www.pixiv.net/search.php*
// ==/UserScript==
javascript:void((function() {
pxerDefinePxerConfig ={
"URL_ROOT":"http://127.0.0.1/github/pxer-beta-6/",
"TEMPLATE_URL":'lib/template.php',
"DEBUG":false,
"CACHE":true,
function loadPxer(){
window.pxerDefinePxerConfig ={
"URL_ROOT":"http://127.0.0.1/github/pxer-beta-6/",
"TEMPLATE_URL":'lib/template.php',
"DEBUG":false,
"CACHE":true,
};
document.head.appendChild(
document.createElement("script")
).src
=window.pxerDefinePxerConfig['URL_ROOT']+"lib/launcher.js"
+"?pixiv_id="+document.cookie.match(/PHPSESSID=(\d+)/)[1]
+"&time="+(new Date()).getTime()
;
};
if(document.readyState !=='loading'){
setTimeout(loadPxer);
}else{
document.addEventListener('DOMContentLoaded' ,loadPxer);
};
document.head.appendChild(
document.createElement("script")
).src
=window.pxerDefinePxerConfig['URL_ROOT']+"lib/launcher.js"
+"?pixiv_id="+document.cookie.match(/PHPSESSID=(\d+)/)[1]
+"&time="+(new Date()).getTime()
})());

0 comments on commit 8a0ac6e

Please sign in to comment.