Comments on ruiz's Scripts
82 comments
| Comment on muxtape + twitter love made Sep 28, 2008: | |
|
GeekShadow |
Work great with OpenTape ! |
| Comment on GMail - GTD Tickler made Sep 25, 2008: | |
|
Derek C |
It would probably help if I had a better understanding of how Gmail, Gcal, and Google Apps worked. It would also be easier if I knew how to code javascript, but still I've made the most progress towards making the tickler Gapps-friendly. I think the problem is how the script recognizes times and dates through the Gapps interface in comparison to the Gmail interface. I'm still getting the "tickle me error - invalid date or time" message. Also, when I click on "Edit Event Details" in the Gmail tickler, it opens up the popup window and fills the title and the description, but the dates range from ??/??/???? to ??/??/????, regardless of what date I entered in the original tickler bubble. Any ideas? |
| Comment on GMail - GTD Tickler made Sep 25, 2008: | |
|
Derek C |
Okay, I've made some progress in 5 minutes. At the links for schema.google.com/g, replace the "g" with "apps" and it will give you another error. Now it's telling me "tickle me error; invalid date or time." At least it's communicating now. It just can't understand anything. I really want this to work with Google Apps. |
| Comment on GMail - GTD Tickler made Sep 25, 2008: | |
|
Derek C |
For some reason, I need to have the tickler installed for Gmail Addons to work right. I'm trying to adapt it to Google Apps, but I'm having some difficulties. Edit Event Details works so far, but Remind Me doesn't work so you always have to do it the long way. Anybody know what schemas.google.com is, and if it differs between regular Google accounts and Google Apps accounts? I think that's the only issue right now. Here's the semi-fix for Google Apps users: // ==UserScript==
Credits: - I adapted code from a lot of other scripts on userscripts... lost track:) Features:
Tips:
Bonus:
Todo:
Testing:
Version History:
var gmail;
window.addEventListener('load', function() {
function main(g) { gmail = g;
Document = gmail.getNavPaneElement().ownerDocument;
function runGTDTickler() {
function setupShortcut() // keyboard shortcut: ";"
if (e.keyCode!=59) return;
var element;
if(element.tagName == 'INPUT' ||
if (e.keyCode==59) delegate();
function addReminder(title,when,content) {
function addEvent(title, content, startdate, enddate) {
function gcalHttpRequestAuthorized(params) {
function gcalHttpRequestUnauthorized(params) {
r.method = params.method; r.headers = (params.headers?params.headers:{}); r.headers["Content-Type"] = "application/atom+xml";
r.url = params.url; r.onload = function(detail) {
r.onerror = function(detail) {
GM_xmlhttpRequest(r);
function requestToString(r) {
function parseWhen(when) {
// support 'tomorrow' shortcut 'tom'
if (containsNext(w)) {
function get2Digits(x) {
function noDate(date) {return (date.search(/^\?/ig) > -1);}
if (date.length>8) {
function formatDate(date) {
return s;
function containsTime(when) {
function log(x) {
function error(x,d) { log(x+"\n"+d.responseText); }; function askWhen(callback) { p.show(callback);
var when = prompt("When? eg. tomorrow, next week, friday at 4pm");
function editReminderDetails(url) {
function processReminder(when, title, gmail_url, event_details_url) {
if (when == null) return; // cancelled --- 'blank' is Okay, open event details editReminderDetails(event_details_url);
function delegate()
gmail_url = gmail_url.replace(/\&/ig,'&'); // replace ampersands
function insertDelegateLinks() {
var msg_count = msgs.length;
var footerLink = document.createElement('div');
// customized popup window
var self = this; this.callback = null;
var overlay = Document.createElement('div');
var container = Document.createElement('div');
inner.innerHTML=
'+
'+
' '+
'+
' ' ' ' '+
';
'<table><tbody>'+ '<tr><td></td>'+ '<td>When?</td>'+ '<td>'+ '<input />'+ '</td>'+ '<td></td>'+ '</tr>'+ '<tr><td></td><td></td>'+ '<td>e.g., tomorrow, next week, friday at 5pm</td>'+ '<td></td></tr>'+ '<tr><td></td><td></td>'+ '<td><input />'+ ' '+ //need space '<label>edit event details »</label>'+ '</td>'+ '<td></td></tr>'+ '</tbody></table>'+ ' this.box = box;
this.isEditing = function() { return (this.box.style.display=='');} this.hide = function() { this.box.style.display = this.overlay.style.display = this.container.style.display= 'none';}
this.hide(); Document.body.appendChild(box);
// enter and submit
Document.getElementById('tickler_when').addEventListener("keyup",
} function getMessages()
return msgs;
})(); ---------- Comment if you're able to get it to work perfectly, and I'll do the same if I beat you to it.</gd:reminder> |
| Comment on GMail Real Estate (Minimize Header, Nav or Ads) made Aug 21, 2008: | |
|
Innovign |
Ruiz, really does free up quite a bit of space - I was surprised =) very nice! and keyboard shortcuts would be a great add-on for show/hide
|
| Comment on GMail Real Estate (Minimize Header, Nav or Ads) made Jul 8, 2008: | |
|
Saibot |
Ruiz,
Also, I wonder if you could add customizable keyboard shortcuts to show/hide as Yooskeh did with the Calendar version. |
| Comment on GMail Real Estate (Minimize Header, Nav or Ads) made Jul 3, 2008: | |
|
Ronnen |
great job ruiz ! Is there an option to hide the right and the left buttons, and disable their functionality?
Thanks,
|
| Comment on GMail - GTD Tickler made May 11, 2008: | |
|
veganjay |
Please disregard my previous comment - I did not realize GCal has default reminders!
|
| Comment on GMail - GTD Tickler made May 11, 2008: | |
|
veganjay |
Nice add-on! I've been looking for something like this. Would it be possible to add a check-box for "Reminder" on the initial pop-up instead of going to "Edit event details"?
|
| Comment on GMail - GTD Tickler made May 8, 2008: | |
|
Tim Nikolaev |
And also would be great if we could use this with Google Apps.
|
| Comment on GMail - GTD Tickler made May 6, 2008: | |
|
emptyowe |
It would be great if the initial popup allowed one to select which calendar to post into. Or if one could specify the default calendar to post tickles to. |
| Comment on GMail - GTD Tickler made May 5, 2008: | |
|
Britonius |
Thanks Ruiz. I look forward to your findings on testing FF3b5. I would also love to see this work with the GreaseKit Simbl plugin for Safari on Mac. Know how to do that or know a Mac script dev who could help make it compatible for the Safari browser as well? |
| Comment on GMail - GTD Tickler made May 5, 2008: | |
|
ruiz |
@cbg3 thanks for the bug fixes. I've merged them into the script. We all appreciate you looking at it. |
| Comment on GMail - GTD Tickler made May 4, 2008: | |
|
cbg3 |
Firebug says that containsMonth is undefined. This seems to prevent the script from adding anything to Google Calendar. But once the containsMonth function is added, the script works. (BTW, the definition of Tuesday in the containsDay function needs to be tweaked from (tue(day)?) to (tue(sday)?) |
| Comment on GMail - GTD Tickler made May 3, 2008: | |
|
ruiz |
I've never tested with FF3b5. I'll try it. |
| Comment on GMail - GTD Tickler made May 1, 2008: | |
|
Britonius |
I added this to Firefox 3b5 and I am not seeing anything. I also use Folders4Gmail, GmailAgenda & Goolge Account Multi-Login. I have also tried this in Safari via the GreaseKit plugin and still nothing. |
| Comment on GMail - GTD Tickler made Apr 2, 2008: | |
|
Big Jon Roberts |
I want to second Nathan Sudds - request - it would be great if this worked with Google Apps email accounts as well. |
| Comment on GMail Real Estate (Minimize Header, Nav or Ads) made Mar 26, 2008: | |
|
ruiz |
@searchforsun... definitely would have to mod the script for that. What parts of the header would you want to keep? |
| Comment on GCal Productivity Chain + ToDo List made Mar 26, 2008: | |
|
ruiz |
@bobielawlintine depends. you must append '!chain' for the todo to be a 'productivity chain'. Otherwise, it will just be a regular todo that's gets done once. |
| Comment on GMail - GTD Tickler made Mar 26, 2008: | |
|
ruiz |
@MySaturdaySelf just fixed some of the date issues. |
| Comment on GCal Productivity Chain + ToDo List made Mar 24, 2008: | |
|
bobielawlintine |
Sorry, see after each chain entry 'chain' - is that a bug??? how to remove - coolcool! |
| Comment on GMail - GTD Tickler made Mar 23, 2008: | |
|
MySaturdaySelf |
The script does not recognize the date now. I don't know why. Before it works ok, now it only accepts tomorrow as date. Any other dates listed in the Gcal quick add don't work. |
| Comment on GMail - GTD Tickler made Mar 17, 2008: | |
|
ruiz |
@Kate2174 Will try:) |
| Comment on GMail - GTD Tickler made Mar 16, 2008: | |
|
Kate2174 |
This is EXACTLY the tool I've been searching for, but I'm having the same problem from my private domain Google Apps Gmail as "Master Scott" (see 03/16/08 posting below). Hopefully, this can be resolved soon. Thanks! |
| Comment on GMail - GTD Tickler made Mar 16, 2008: | |
|
Master Scott |
I read the previous post about this, but am unclear as to the solution, or if there is one. I'm using this in my custom domain Google Apps Gmail account. When I click the 'Tickle Me' link, it works like a charm, but, it defaults back to my @gmail.com calendar, not the @mydomain.com Gmail/cal account that I am sending from. Is this fixable on my end? If not, I'd like to request it. Thanks FYI: My account does have Gmail 2 new features enabled. I have GTDInbox installed. |
