Last active
December 19, 2015 07:09
-
-
Save banyan/5916985 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Qiita::Team Expand | |
// @namespace http://github.com/banyan | |
// @description Qiita::Team のトップページの content を expand する | |
// @include https://*.qiita.com/* | |
// ==/UserScript== | |
//http://stackoverflow.com/questions/2246901/how-can-i-use-jquery-in-greasemonkey-scripts-in-google-chrome | |
var load,execute,loadAndExecute;load=function(a,b,c){var d;d=document.createElement("script"),d.setAttribute("src",a),b!=null&&d.addEventListener("load",b),c!=null&&d.addEventListener("error",c),document.body.appendChild(d);return d},execute=function(a){var b,c;typeof a=="function"?b="("+a+")();":b=a,c=document.createElement("script"),c.textContent=b,document.body.appendChild(c);return c},loadAndExecute=function(a,b){return load(a,function(){return execute(b)})}; | |
loadAndExecute("//ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js", function() { | |
setTimeout(function() { | |
$('.item-box-container-inner').each(function() { | |
$(this).click(); | |
}); | |
}, 2500); // wait loading for content | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment