This project ‘kirbytag-codepen’ is now hosted over on GitHub: https://github.com/plfstr/kirbytag-codepen
This file contains hidden or 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
| tell application "FoldingText" | |
| tell front document | |
| evaluate script "function(editor, options) { | |
| var tree = editor.tree(), | |
| headings = tree.evaluateNodePath('//heading'), | |
| toc = []; | |
| headings.forEach(function(each) { | |
| var level = each.typeIndentLevel(), | |
| text = '- ' + each.text(); |
This file contains hidden or 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
| defaults write com.foldingtext.FoldingText DefaultFileExtension md |
This file contains hidden or 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
| window.fluid.dockBadge = ''; | |
| var notify = true; | |
| setInterval(updateDockBadge, 500); | |
| function updateDockBadge() { | |
| var count = document.querySelector(".pls._1r.fwn:not(.hidden_elem)"); | |
| if (count) { | |
| if (notify) { | |
| var title = document.querySelector('._kx ._l2 ._l1').textContent; | |
| var text = document.querySelector('._kx ._l3').textContent; |
This file contains hidden or 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
| // Ver 0.4 Rob Trew | |
| // Library for using OSX Yosemite Script Editor scripts | |
| // written in an idiom compatible with FoldingText, Drafts, 1Writer, TextWell | |
| // In iOS Drafts 4 scripts, the header is simply: | |
| // var drafts = this; | |
| // For headers for FoldingText and other editors, see: | |
| // See: http://support.foldingtext.com/t/writing-scripts-which-run-on-both-foldingtext-and-ios-drafts-4/652/7 | |
| // Call functions, after this header, with the prefix: | |
| // drafts. |
This file contains hidden or 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
| <?php | |
| return array( | |
| 'title' => 'Widget Title', | |
| 'html' => function() { | |
| // any data for the template | |
| $data = array(); | |
| return tpl::load(__DIR__ . DS . 'template.php', $data); | |
| } | |
| ); |
This file contains hidden or 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 New Userscript | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description try to take over the world! | |
| // @author You | |
| // @match https://workflowy.com/* | |
| // @grant none | |
| // ==/UserScript== | |
| /* jshint -W097 */ |
OlderNewer