Skip to content

Instantly share code, notes, and snippets.

@banyan
Last active December 19, 2015 07:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save banyan/5916985 to your computer and use it in GitHub Desktop.
Save banyan/5916985 to your computer and use it in GitHub Desktop.
// ==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