Skip to content

Commit

Permalink
test;
Browse files Browse the repository at this point in the history
  • Loading branch information
jerone committed Mar 31, 2015
1 parent 11cc3c9 commit 631ba42
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions Github_User_Info/Github_User_Info.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// @updateURL https://github.com/jerone/UserScripts/raw/master/Github_User_Info/Github_User_Info.user.js
// @supportURL https://github.com/jerone/UserScripts/issues
// @contributionURL https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=VCYMHWQ7ZMBKW
// @require http://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js
// @version 0.1.0
// @grant GM_xmlhttpRequest
// @grant GM_setValue
Expand All @@ -21,6 +22,8 @@
// ==/UserScript==

(function() {
/*
function init(){
var userMenu = document.createElement('div');
userMenu.style =
Expand Down Expand Up @@ -408,5 +411,35 @@ userMenu.style.width = '320px';
return !!property;
}
}
*/


window.setTimeout(function(){


console.log(window.jQuery, unsafeWindow.jQuery);
console.log( $);
console.log(unsafeWindow.$(document));
console.log(unsafeWindow);
console.log(unsafeWindow.document.body);
/*
unsafeWindow.$(unsafeWindow.document).on("pjax:end", function(){
alert('Github User Info', '1');
console.log('Github User Info', '1');
});
unsafeWindow.$(unsafeWindow.document.body).on("pjax:end", function(){
alert('Github User Info', '1b');
console.log('Github User Info', '1b');
});
unsafeWindow.$(document).on("pjax:end", function(){
alert('Github User Info', '2');
console.log('Github User Info', '2');
});*/
unsafeWindow.$('body').on("pjax:end", function(){
alert('Github User Info', '3');
console.log('Github User Info', '3');
});

}, 2000);

})();

0 comments on commit 631ba42

Please sign in to comment.