endflow.net blog

/* programming and programming */

Archive for the ‘Firefox’ tag

Flickr Fav Set: #1 Create new FavSet

with 2 comments

/* Introduction */

This series is a tutorial for greasemonkey script Flickr Fav Set introduced in previous blog entry. In this tutorial, I’d like to explain about the overview of user interface, creating new FavSet and add your favorites to FavSet.

create new favset

If you didn’t installed the script yet or don’t know about Flickr Fav Set, please see this entry first.

Read the rest of this entry »

Written by kuy

February 22nd, 2009 at 8:33 pm

Posted in Uncategorized

Tagged with , , , ,

Flickr Fav Set: Manage your Favorites on Flickr

without comments

/* How does it work ? */

Using this greasemonkey script, you can manage your favorites with “FavSet” (likes “Set” or “Category”) on Flickr.

FavSet Selector

In Flickr, the user can put star mark “Favorite” on a photo taken by other peoples. However, it’s difficult to look for favorite one since we have a lot of favorite photos. So I created this.

Read the rest of this entry »

Written by kuy

February 21st, 2009 at 8:01 pm

Posted in Uncategorized

Tagged with , , ,

How to distribute my Firefox 3 Add-on

without comments

/* WORKING */

Now translating…

Written by kuy

October 21st, 2008 at 2:50 am

Posted in Uncategorized

Tagged with ,

Extension: Adds ColorPicker to Firebug

with 20 comments

/* What is this? */

This is an extension for Firebug, adds color picker in CSS panel.

Read the rest of this entry »

Written by kuy

October 20th, 2008 at 4:41 am

Posted in Uncategorized

Tagged with , ,

Utility functions in JavaScript

without comments

/* Tested on Firefox 3 */

function $x(x,c){c=c||document;var d=c.ownerDocument||c;
var r=d.evaluate(x,c,null,4,null);for(var i,n=[];i=r.iterateNext();n.push(i));return n}
function $X(x,c){var e=$x(x,c)[0];e&&(arguments.callee.$=e);return e}
function $n(t,o,c){var e = document.createElement(t);if(o){for(var k in o)
{e[k]=o[k]}}if(c){c.forEach(function(ch){e.appendChild(ch)})}return e}
function $t(t){return document.createTextNode(t)}
function $(id){return document.getElementById(id)}
function $b(o,f){return function(){return f.apply(o,arguments)}}
function $e(t,o){t=t.toString();for(var k in o){t=t.replace(new RegExp('#{'+k+'}','g'),o[k])}return t}
function $h(o,a){if(a.length==0)return false;return a.every(function(p){return o.hasOwnProperty(p)})}
function isO(o){return o.constructor.toString()==Object.toString()}
function isA(a){return a.constructor.toString()==Array.toString()}
function isS(s){return (typeof s)=='string'}
function diffA(a,b){b.forEach(function(i){var p=a.indexOf(i);
if(p!=-1){a=a.slice(0,p).concat(a.slice(p+1))}});return a}
function interA(a,b){return a.filter(function(i){return b.indexOf(i)!=-1})}
function unionA(a,b){(a.length

enjoy JS! ;)

Written by kuy

October 14th, 2008 at 3:40 am

Posted in Uncategorized

Tagged with , ,

NicoVideo Global Tag Icon updated & comments

with 3 comments

/* NicoVideo Global Tag Icon */

updated. You can install new script from here.

I’d like to comment for my script.
Read the rest of this entry »

Written by kuy

August 22nd, 2008 at 2:34 am

Posted in Uncategorized

Tagged with , , ,

Smooth following Ranking list to page scrolling on NicoVideo

without comments

/* How does it work ? */

This script applies patch that improves behavior of categories list on page scrolling in NicoVideo’s ranking page.

Recently, NicoVideo development team added new feature. Unfortunately, this feature is not good on Firefox. Well, I found description about this in development team blog: ‘works good in Safari’. So I have try and check on Safari for Windows, and it works very smoothly.
So I decide to create this patch.
Read the rest of this entry »

Written by kuy

August 21st, 2008 at 9:17 pm

List of Greasemonkey scripts for NicoVideo

with 9 comments

/* Recently… */

I created many Greasemonkey script for NicoVideo. However, you know I’m lazy, I received this comment. And so I’d like to write entry about introduce my Greasemonkey script for NicoVideo.
If you find interesting one, please try it.
Read the rest of this entry »

Written by kuy

August 18th, 2008 at 8:16 pm

Posted in Uncategorized

Tagged with , , ,

RTM keyconfig update for Firefox 3

with 2 comments

/* RTM keyconfig */

I’ve updated RTM config for Firefox 3 + Greasemonkey 0.8.
There is no change of user confg and feature.

rtm_keyconfig.user.js [userscript.org]

/* Causes */

In previous version (0.1.2), It generates the code from user config, makes function (global scope) object and registers it into event handler of EventManager class. However, This code occurs some errors. So I can’t fix this issue.

EventManager.prototype.bodyKeyPressHandler = new Function("ev", "ignoreCombo", newcode);

Recently, I pinpointed the causes that “new Function(…)” occurs error. Therefore, I decide to insert script tag include generated code from user config into html. Like this:

var script = document.createElement('SCRIPT');
script.innerHTML = 'function gm_rtm_keyconfig(ev, ignoreCombo){n' + newcode + 'n}';
document.getElementById('content').appendChild(script);
eventMgr.bodyKeyPressHandler = function(ev, ignoreCombo){
    gm_rtm_keyconfig.call(eventMgr, ev, ignoreCombo);
};

/* Conclusion */

Thank you Ofer.
I can’t fix this issue without your comment.

enjoy RTM! ;)

Written by kuy

July 5th, 2008 at 3:02 am

Posted in Uncategorized

Tagged with , , ,

LDR Ad-Entry Blocker supports fLDR

without comments

/* LDR Ad-Entry Blocker */

supports fLDR.
LDR Ad-Entry Blocker [Userscrips.org]
I’ve checked it on Firefox 3.0 (GM 0.8) and Opera 9.5.

/* Reason */

The “contain” function that embedded in LDR on line 3 always return “false”.

titles.each(function(title){
    cfg.patterns.each(function(rx){
        if(contain(title.innerHTML, new RegExp(rx))){

So I fixed:

titles.each(function(title){
    cfg.patterns.each(function(rx){
        if((new RegExp(rx)).test(title.innerHTML)){

Like that.

/* Conclusion */

I thought that I shouldn’t use embedded functions.
However, I already made this using a lot of embedded functions. lol
Thank you “you”-san for reporting this issue.

enjoy LDR! ;)

Written by kuy

June 20th, 2008 at 12:38 am

Posted in Uncategorized

Tagged with , , , , , ,