Comments by deodrus on scripts

8 comments

Comment on:
UnFuck Facebook

May 20, 2008

Hey, it still doesn't work with the May 10 update.
Here is what is wrong. Simple fix:

Under "Manage User Scripts"
"Included Pages" must be:
=======================
http://*.facebook.com/*
https://*.facebook.com/*

Right now you have it as:
=========================
http://facebook.com/*
https://facebook.com/*
... and it does not get activated at all !

Comment on:
Google Inbox Count Display

May 22, 2007

indeed. very simple and useful! thanks!

Comment on:
Deviant enlarge

May 16, 2007

You are a Jedi of scripts. I love your work!

Another AWESOME script. Thank you very much!! This is one of the first things I looked for on userscripts. (^_^)

Comment on:
inYOf4ceBook

May 16, 2007

ah, thank you very much for the quick-fix! It works perfectly for me. I just adjusted the values to display at my own custom co-ordinates using the line you mentioned.

Thanks again!

and an AWESOME script! I've shared it with my friends on facebook. Keep up the awesome work!

Hi Margin!

This works wonders for me! I modified it a bit to fit my situation! You see, my girlfriend lives in Japan, and we keep updated with GoogleCalendar.
So what I did was to create a Japan Timeline (in green) that is 13 hours ahead of my current timeline (and the version that I sent her has 13 hours subtracted from her time to display mine).
The only problem is that I cannot figure out how to SHIFT that green line to the NEXT day (or PREVIOUS day, in her case) if it goes past midnight.

=> I believe the decowner attribute handles that??
Please let me know how I can fix this.

Here is the code:

(I'm terribly sorry about the long comment!!!)
======================================
// ==/UserScript==

GM_addStyle(<>

/* You can freely change line style. */
#currentTimeLine {
background: red;
height: 3px;
border: 1px solid black;
opacity: 0.5;
margin: -2px 0 0 1px;
position: absolute;
z-index: 2;
}

#japanTimeLine {
background: green;
height: 3px;
border: 1px solid black;
opacity: 0.5;
margin: -2px 0 0 1px;
position: absolute;
z-index: 2;</>);

window.addEventListener("load", function() {
var currentTimeLine = document.createElement("div");
currentTimeLine.id = "currentTimeLine";
var currentDayBox;
var japanTimeLine = document.createElement("div");
japanTimeLine.id = "japanTimeLine";
var japanDayBox;

function entryTimeLine() {
var U = unsafeWindow.U;
if (U.type == 0 || U.type == 1 || (U.type == 4 && U.extent <= 7)) {
var decowner = document.getElementById("decowner");
if (decowner) {
currentDayBox = decowner.getElementsByTagName("div")[0];
document.getElementById("grid").appendChild(currentTimeLine);
japanDayBox = decowner.getElementsByTagName("div")[0];
document.getElementById("grid").appendChild(japanTimeLine);
updataTimeLine();
} else {
currentDayBox = false;
japanDayBox = false;
}
}
}

function updataTimeLine() {
if (currentDayBox) {
var now = new Date;
var h = now.getHours();
var m = now.getMinutes();
var s = now.getSeconds();
var jh = h + 13;
var jm = m;
var js = s;
if (jh > 23)
{
jh -= 24;
}
var style = currentTimeLine.style;
var japstyle = japanTimeLine.style;
style.top = (h * 6 + m / 10 + s / 600) + "ex";
style.left = currentDayBox.style.left;
style.width = currentDayBox.style.width;
japstyle.top = (jh * 6 + jm / 10 + js / 600) + "ex";
japstyle.left = currentDayBox.style.left;
japstyle.width = currentDayBox.style.width;

}
}
}

var refresh = unsafeWindow._RefreshCalendar;
var refreshFuncName = refresh.toString().match(/^function ([\w_\$]+)\(/)[1];
unsafeWindow[refreshFuncName] = function() {
refresh.apply(this, arguments);
entryTimeLine();
};

entryTimeLine();
setInterval(updataTimeLine, 30000);
}, false);

Comment on:
inYOf4ceBook

Apr 28, 2007

hi znerp! awesome improvement! Seeing 'the bigger picture' has never been so much fun (~_^)

the only thing that irks me slightly is that, since i use a widescreen, it sucks to have to shift my eyes to the left each time to view the bigger-thumbnail. It's okay at first, but quickly gets annoying if you use it often. I liked how inYOfaceBook displayed the bigger-thumbnail right next to your mouse cursor. Is it possible to revert back to this? or could you just comment back on what needs to be changed in the code? (*hoping it's an easy fix)

Comment on:
inYOfaceBook

Apr 28, 2007

awesome work, justin!! i love being able to see 'the bigger picture' (pun intended). ;-)