Skip to content

Commit

Permalink
修正Greasemonkey启动bug
Browse files Browse the repository at this point in the history
  • Loading branch information
pea3nut committed Oct 7, 2016
1 parent d19ea70 commit 0d31ccc
Showing 1 changed file with 19 additions and 10 deletions.
29 changes: 19 additions & 10 deletions src/pxer.user.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// ==UserScript==
// @name Pxer-beta-6
// @version 6.0.2
// @namespace https://github.com/pea3nut/Pxer
// @author 花生PeA
// @description pixiv.net Tools
Expand All @@ -9,15 +10,23 @@
// @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":'src/view/template.php',
"DEBUG":true,
"CACHE":false,
function loadPxer(){
window.pxerDefinePxerConfig ={
"URL_ROOT":"http://127.0.0.1/github/pxer-beta-6/",
"TEMPLATE_URL":'src/view/template.php',
"DEBUG":true,
"CACHE":false,
};
document.head.appendChild(
document.createElement("script")
).src
=window.pxerDefinePxerConfig['URL_ROOT']+"src/script/launcher.js?"
+(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']+"src/script/launcher.js?"
+(new Date()).getTime()
})());

0 comments on commit 0d31ccc

Please sign in to comment.