Skip to content

Instantly share code, notes, and snippets.

CmdUtils.makeBookmarkletCommand({
name: "BugMeNot",
url:"javascript:(function(){w=open(('http://www.bugmenot.com/view/'+escape(location)),'w','location=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=500,height=400,modal=yes,dependent=yes');if(w){setTimeout('w.focus()',1000)}else{location='http://www.bugmenot.com/view/'+escape(location)}})();"
})
CmdUtils.makeBookmarkletCommand({
name: "BugMeNot",
url:"javascript:(function(){w=open(('http://www.bugmenot.com/view/'+escape(location)),'w','location=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=500,height=400,modal=yes,dependent=yes');if(w){setTimeout('w.focus()',1000)}else{location='http://www.bugmenot.com/view/'+escape(location)}})();"
})
CmdUtils.makeBookmarkletCommand({
name: "Tracit",
url:"javascript:(function()%7Bgstrac_script=document.createElement('SCRIPT');gstrac_script.type='text/javascript';f='http://labs.toolness.com/trac//';gstrac_script.src='http://getsatisfaction.com/gstrac.js?x='+(Math.random());document.getElementsByTagName('head')%5B0%5D.appendChild(gstrac_script);%7D)()"
})
@indolering
indolering / TracIt.js
Created January 27, 2009 04:47
GetSatisfaction.com to Trac bridge
CmdUtils.makeBookmarkletCommand({
name: "tracit",
url: "javascript:(function()%7Bgstrac_script=document.createElement('SCRIPT');gstrac_script.type='text/javascript';f='https://ubiquity.mozilla.com/trac/';gstrac_script.src='http://getsatisfaction.com/gstrac.js?x='+(Math.random());document.getElementsByTagName('head')%5B0%5D.appendChild(gstrac_script);%7D)()"
})
/*
ToDo
•Make GSFN detection and allow for it to work from any page
•Nix modal dialogue box and just open a new tab with a pre-filled Trac ticket.
CmdUtils.makeBookmarkletCommand({
name: "faviki",
url: "javascript:(function(){var%20w=window,d=document,e=encodeURIComponent,url=location.href,fff=d.getElementsByTagName('body')[0],wra=d.getElementById('wrapper_faviki');if(url!=''&&url!='about:blank'){if(!fff){p=w.open('http://www.faviki.com/ajax/edit_entry.php?url='+e(url)+';;;'+e(d.title)+';;;'+'&type=popup','bkmk_popup','left='+((w.screenX||w.screenLeft)+10)+',top='+((w.screenY||w.screenTop)+10)+',height=320px,width=443px,resizable=0,alwaysRaised=1');w.setTimeout(function(){p.focus()},300);}else{if(wra){wra.style.display='block'}else{var%20s=d.createElement('script');s.id='faviki_script';s.src='http://www.faviki.com/js/include/include.php';d.getElementsByTagName('body')[0].appendChild(s);}}}}());"
})
@indolering
indolering / gist:62499
Created February 12, 2009 05:08
Viddler link video
/* This is a poorly designed, hardcoded, workaround hack... and will easily break */
CmdUtils.CreateCommand({
name: "watch viddler from",
author: { name: "Kris Walker", email: "kixxauth@gmail.com"},
license: "GPL",
description: "Opens a browser tab, starting a Viddler video from the selected time stamp in the new tab.",
help: "Out of all the web pages on the planet, this command works for 10 of them."
+" But, if you dare, select a time code on the page, or enter one here on the command line.",
takes: {"time stamp": noun_arb_text},
preview: function( pblock, input ) {
@indolering
indolering / x
Created February 21, 2009 01:59
Signature Command
function cmd_sig() {
CmdUtils.setSelection( "[http://tinyurl.com/bypduc F2+S2 = P4/Major]" );
}
/*
=skin=
@name Custom
@author You
@homepage http://www.yourpage.com
@email you@you.com
@license MPL/LGPL/GPL
=/skin=
function cmd_sig() {
CmdUtils.setSelection( "[http://tinyurl.com/bypduc F2+S2 = P4/Major]" );
}
//Note: This command was automatically generated by the create-new-search-command command.
CmdUtils.makeSearchCommand({
name: "macserialjunkie",
url: "http://www.macserialjunkie.com/forum/search.php?sid=e0a3833e89efa89b33167fbf6f742e53?keywords={QUERY}",
icon: "http://www.macserialjunkie.com/favicon.ico",
//Note: This command was automatically generated by the create-new-search-command command.
CmdUtils.makeSearchCommand({
name: "Wolfram Alpha",
url: "http://www.wolframalpha.com/input/?i={QUERY}&asynchronous=false",
icon: "http://www.wolframalpha.com/favicon.ico",
description: "Searches www.wolframalpha.com"
});