There are 1 previous version of this script.
// ==UserScript==
// @name RTM Custom
// @namespace http://www.lonecanoe.com/
// @description Shows keyboard shortcuts for Remember the Milk before the body of RTM pages. Removes Scrolling of details box. Keeps Tag Cloud visible.
// @author Dustin Chilson
// @include https://www.rememberthemilk.com/*
// @include http://www.rememberthemilk.com/*
// ==/UserScript==
function Shortcuts() {
var shorts = 'Add(t) <b>Complete(c)</b> <b>Due Date(d)</b> Repeat(f) Tags(s) Add Note(y) Rename(r) <b>Undo(z)</b> <b>Delete(<Del>)</b>' +
'<br />Select All(a) Select None(n) Move Up(k) Move Dn(j) Select Item(i) <b>Multi-Edit(m)</b> Tab(<Tab>) Escape(<Esc>)';
var logo = document.createElement("div");
logo.innerHTML = '<div style="margin: 0 auto 0 auto; ' +
'border-bottom: 1px solid #000000; margin-bottom: 0px; ' +
'font-size: small; background-color: #ffffff; ' +
'color: #000000;"><p style="margin: 2px 0 1px 0;"> ' +
shorts +
'</p></div>';
document.body.insertBefore(logo, document.body.firstChild);
}
var L = unsafeWindow.document.getElementById("detailsbox");
L.moveDiv = function () {
var L = unsafeWindow.document.getElementById("detailsbox");
L.style.top = window.pageYOffset+"px";
unsafeWindow.Autocomplete.handleWindowResize();
};
function handleVisibilityChange(event) {
try {
listenForVisibility(false);
if (event && (event.currentTarget.id == 'taskcloud_copy' || event.currentTarget.id == 'taskcloud_copy') && event.attrName == 'style') {
document.getElementById(event.currentTarget.id).style.display = 'block';
}
listenForVisibility(true);
} catch (e) {
alert('Error: ' + e.message);
}
}
function listenForVisibility(listen) {
var cloud = document.getElementById('taskcloud_copy');
if (cloud) {
if (listen) {
cloud.addEventListener("DOMAttrModified", handleVisibilityChange, false);
cloud.addEventListener("DOMAttrModified", handleVisibilityChange, false);
} else {
cloud.removeEventListener("DOMAttrModified", handleVisibilityChange, false);
cloud.removeEventListener("DOMAttrModified", handleVisibilityChange, false);
}
}
cloud = document.getElementById('taskcloud');
if (cloud) {
if (listen) {
cloud.addEventListener("DOMAttrModified", handleVisibilityChange, false);
cloud.addEventListener("DOMAttrModified", handleVisibilityChange, false);
} else {
cloud.removeEventListener("DOMAttrModified", handleVisibilityChange, false);
cloud.removeEventListener("DOMAttrModified", handleVisibilityChange, false);
}
}
}
handleVisibilityChange();
Shortcuts();
//removes elements and changes padding
GM_addStyle("#appfooter-news-list, #appheaderlogo, #break {display:none !important;}");
GM_addStyle("#searchbox {padding-Top:0px !important;}");
window.addEventListener('unload', function() {
listenForVisibility(false);
}, false);
//forces HTTPS
location.href = location.href.replace(/^http:/, 'https:');