Full writeup here: http://blog.samsandberg.com/2014/09/18/auto-rotate-tabs-using-applescript/
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
/* | |
* Javascript makeslug() | |
* by J. Santos <jefrey[at]jefrey[dot]ml> | |
*/ | |
/* | |
Usage: | |
string makeslug( string val [, string replaceBy = "-" ] ) | |
Example: |
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
chrome.extension.sendMessage({}, function(response) { | |
var readyStateCheckInterval = setInterval(function() { | |
if (document.readyState === "complete") { | |
clearInterval(readyStateCheckInterval); | |
var actions = [ | |
[function(){return clickNode('.bp3-icon-more', '')}, 10], | |
[function(){return clickNode('a.bp3-menu-item', 'Export All')}, 10], | |
[function(){return clickNode('.bp3-dialog .bp3-button', 'Markdown')}, 10], | |
[function(){return clickNode('.bp3-dialog a.bp3-menu-item', 'JSON')}, 10], |
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
/* | |
* Viktor's Roam gallery PoC v0.2 | |
* author: @ViktorTabori | |
* | |
* How to install it: | |
* - go to page [[roam/js]] | |
* - create a node with: {{[[roam/js]]}} | |
* - create a clode block under it, and change its type from clojure to javascript | |
* - allow the running of the javascript on the {{[[roam/js]]}} node | |
* - reload Roam |
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
// roam/js code snippet to add crossing out completed todos | |
// also adds the CSS classname custom-strikethrough for css mods | |
;(()=>{ | |
if( typeof window.roamhacker_checkboxStrikeout != 'undefined') return; | |
window.roamhacker_checkboxStrikeout = {}; | |
const scanCheckboxes = () => { |