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:window.location='drafts://x-callback-url/create?text='+encodeURIComponent(document.title+'\n')+encodeURIComponent(location.href)+'&action=pinbook-desc' |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<opml version="2.0"> | |
<head> | |
<title>Video</title> | |
</head> | |
<body> | |
<outline text="[[title]]" type="outline" created="[[date|%a, %d %b %Y %T EDT]]" isFeedItem="true"> | |
<outline text="<iframe width="560" height="315" src="//www.youtube.com/embed/[[body]]" frameborder="0" allowfullscreen></iframe>"/> | |
</outline> | |
</body> |
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
Gmail to Pushover | |
key = "YOUR_PUSHOVER_KEY_HERE"; | |
a = op.getLineText(); | |
b = encodeURIComponent(a); | |
c = b.replace(/%/g,"%25"); | |
dialog.ask ("Drafts Action?", "", "Enter it here", function (name) { | |
action = encodeURIComponent(name); | |
actionrep = action.replace(/%/g,"%25"); | |
notification = "drafts:///create?text=" + c + "%26action=" + actionrep;<br> | |
var long = notification.length + 5; |
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
Pushover Count | |
a = op.getLineText(); | |
b = encodeURIComponent(a); | |
c = b.replace(/%/g,"%25"); | |
p = "drafts:///create?text=" + c + "%26action="; | |
l = p.length; | |
dialog.alert ("This encoded headline contains " + l + " characters."); |
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
Tweet Trex | |
var text = op.getLineText(); | |
var link = op.getCursorUrl(); | |
window.open("https://twitter.com/share?text=" + text + "&url=" + link,"_blank"); |
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
TweetBlog | |
var text = op.getLineText(); | |
dialog.ask ("Enter link below", "", "", function (name) { | |
op.attributes.setOne("type", "link"); | |
op.attributes.setOne("url", name); | |
var url = op.attributes.getOne ("url"); | |
window.open("https://twitter.com/share?text=" + text + "&url=" + url,"_blank"); | |
var date = clock.now().toDateString(); | |
op.insert ("Posted: " + date, up); | |
op.attributes.setOne("icon", "twitter-sign"); |
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
Move Child to Next Parent | |
op.reorg (left, 1); | |
op.reorg (down, 1); | |
op.reorg (right, 1); |
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
todo | |
var value = op.attributes.getOne ("icon"); | |
if (!value) { | |
op.attributes.setOne ("icon", "check-empty"); | |
} | |
else if (value == "check-empty") { | |
op.attributes.deleteOne ("icon"); | |
op.attributes.setOne ("icon", "check"); | |
} | |
else if (value == "check") { |
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
<?php | |
/* | |
Plugin Name: OPML in WordPress | |
Author: Jeffrey Kishner | |
*/ | |
function fargo2opml ($opmlfile) { | |
$opmfile = shortcode_atts(array( | |
'url' => '', |
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
convert to Music-Map | |
var band = op.getLineText(); | |
band = band.trim(); | |
var newband = band.replace(" ","+"); | |
var link = 'http://www.music-map.com/' + newband + '.html'; | |
op.insert('Music-Map',right); | |
op.attributes.setOne("type","link"); | |
op.attributes.setOne("url",link); | |
op.attributes.setOne("icon","map-marker"); |