Sunday, February 12, 2006

Greasemonkey PTE Fixer

Instead of moaning of the problem over and over again, Xr decided to write up a GreaseMonkey fixer for the BlogDrive PTE Posting Dates problem.

Greasemonkey is a Firefox extension which lets you to add bits of DHTML ("user scripts") to any web page to change its behavior.

If you uses Firefox and have the Greasemonkey installed on your computer, You may use this tool. Download the script here.

Below are the details, note the explanation: Blogdrives gives the time based on configured timezone. However, when creating a new entry, "Current" doesn't mean anything. In those cases, the hours are set to local time. Think about it if the machine from which you edit your blog is not set to the same timezone as your blog.

// Blogdrive PTE Fixer v 0.2.2
// Copyright (c) 2006, Xr
// Released under the GPL license
// http://www.gnu.org/copyleft/gpl.html
//
// This is a Greasemonkey script. if you don't have GM, go to
// http://greasemonkey.mozdev.org/
// GM is an extension for Firefox (http://www.mozilla.com/firefox/)
//
// Known bugs :
// - Blogdrives gives the time based on configured timezone. However, when
// creating a new entry, "Current" doesn't mean anything. In those cases,
// the hours are set to local time. Think about it if the machine from which
// you edit your blog is not set to the same timezone as your blog.
//
// Version history :
// 0.2.2 : Fixed date systm where "09" would be interpreted as octal
// Fixed date showing GMT instead of local time.
// 0.2.1 : Title is not lost anymore
// 0.2 : Moved to a better way of getting input field, fields are now selected
// depending on posted date / current date
// 0.1 : Initial script
//
//
// ==UserScript==
// @name Blogdrive PTE Fixer
// @description Allows Plain Text Editor to correctly edit dates
// @namespace http://xr.i-jeuxvideo.com/?cat_id=progs
// @include http://www.blogdrive.com/manage/blog_entries*
// ==/UserScript==
// Get the invalid <input> field.

I have not tested it, but looking through the codes it appears to be doing it right since it's well organised and written. Try it out if you uses Greasemonkey.

References: Plain Text Editor (PTE) bugs and issues, Dates of Edited Posts, Can't Change My 'Publish Date', BlogDrive PTE Fixer, Greasemonkey,
Tags: BlogDrive, , , Firefox, Greasemonkey,

No comments: