Skip to content

Instantly share code, notes, and snippets.

@koyudoon
Created September 14, 2014 04:37
Show Gist options
  • Save koyudoon/30a52e695cd09cee72f8 to your computer and use it in GitHub Desktop.
Save koyudoon/30a52e695cd09cee72f8 to your computer and use it in GitHub Desktop.
reveal.js 製のスライドショーを印刷用の一括表示にするブックマークレット
// description: reveal.js 製のスライドショーを印刷用の一括表示にする
// UUID: c72f4e91-210a-4840-9d72-050ffe7c44ab
// javascript:(function(){var a,b;a=Array.prototype.slice.call(document.querySelectorAll("script"));b=/reveal(\.min)?\.js$/;1>a.filter(function(a){return b.test(a.src)}).length||location.replace([location.origin,location.pathname,"?print-pdf#/"].join(""))})();
(function() {
var eles_script, re, revealjs;
eles_script = Array.prototype.slice.call(document.querySelectorAll('script'));
re = /reveal(\.min)?\.js$/;
revealjs = eles_script.filter(function(e) {
return re.test(e.src);
});
if(revealjs.length < 1) return;
location.replace([
location.origin,
location.pathname,
'?print-pdf#/'
].join(''));
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment