Archive for May, 2007

My first MonkeyScript

I was so amazed with the script plugins on firefox. Yeah! They enhance the website UI so much!
Now I use GreaseMonke and Stylish for GoogleReader, Gmail, last.fm, DeviantArt, Flickr, Hotmail, Download.com, Twitter, Photobucket and so on.

I am a Naruto fan. And I found one online comic site about Naruto. But one block of advertiesment make me crazy! Who can bear this?

So the impulse to write one script to hide the block come out from my brain.

After read some source scripts, I wrote as the below:

// ==UserScript==
// @name 1mh comic
// @description Say goodbye to Demonoid’s most annoying ads ever. (v1.1)
// @include http://www.1mh.org/html/*
// ==/UserScript==

var adContainer = document.getElementsByTagName(’table’)[0];
if (adContainer)
adContainer.parentNode.removeChild(adContainer);

adContainer = document.getElementsByTagName(’table’)[1];
if (adContainer)
adContainer.parentNode.removeChild(adContainer);

adContainer = document.getElementsByTagName(’table’)[2];
if (adContainer)
adContainer.parentNode.removeChild(adContainer);

adContainer = document.getElementsByTagName(’table’)[5];
if (adContainer)
adContainer.parentNode.removeChild(adContainer);

adContainer = document.getElementsByTagName(’table’)[6];
if (adContainer)
adContainer.parentNode.removeChild(adContainer);

——————————————————————–

Yes, I only keep the 3rd(image) and 4th(page control) table. So simple! The script is dirty, but I needn’t make it clean.

After install my script, the result page display so clean.

So cool! Ok, let’s code anywhere and anytime.


Share this: del.icio.us Digg Furl Reddit BlinkList blogmarks Google Ma.gnolia Netscape Newsvine Simpy Spurl StumbleUpon Technorati Windows Live Yahoo!

Related Post




GoogleReader + Gmail = mine Digg

I have used some rss readers: IE7, News Reader, ZhuaXia(Chinese), FeedDaemon. They are all good. But when I met with GoogleReader, I Wow!

When I read news from rss subscription, I want not only read it, but also keep the best as favorites. And I think I had better keep it into some online warehouse. Note sites or Digg sites? No! I wish one day I could backup them up to the local. The most convenient way is to use GoogleReader’s “email” + Gmail’s “Label”.

1. Create Labels in Gmail.

You can make the label by path: Digg/Big Tag/Small Tag/…
Of course the separating character can be “/”, “-” or others you like.
Don’t worry about the mass number of the labels. You can only digg the news that you interest the most.

Of course you make the label when you receive mails from GoogleReader. I will talk about it later.

2. When you meet the best news in GoogleReader, you can click “Email” link below the news. One mail dialog will appear. Pls fill your gmail address and send it.(You can use Plugin “Better Gmail” to help you fill up the address .

3. You will receive the news mail. Pls apply label to it. When you have no suitable label, pls make one label by the Digg Label rule.

4. You can receive the mails to your local anyway. That’s the best news for me.

Remember, you only can send 99 mails one day by GoogleReader. Or you can get the “You can’t send mail” message. I think Google don’t want Google be a ogre via mail. But do you need to do as this?


Share this: del.icio.us Digg Furl Reddit BlinkList blogmarks Google Ma.gnolia Netscape Newsvine Simpy Spurl StumbleUpon Technorati Windows Live Yahoo!

Related Post




Unlimited iGoogle


Unlimited iGoogle
Originally uploaded by terababy.

This is my first post in fact :_)

The first one is about google. So am I a google fan? Maybe not. In the past three years, I didn’t read online news, join society network/bbs… When I meet problems in work&life, I would do some searching using Google. In those days, I felt free and happy. Maybe that’s the best living way in the web times. But I know, that’s the best living way in the web2.0 times. Oooops…. Let’s talk about the topic about this post.

When iGoogle was online, I was hot with it and put some helpful widgets into it. When the number of the tabs got up to six, I can’t believe my eyes. Google limits it! My God, huge Google do such things!

Fortunately, I found the below tip using Google search to crack Google’s iGoogle.

1. Open iGoogle Homepage.

2. Paste the javascript in URL:

javascript:_renameTab(); _dlsetp(’at=’)

Then you can see one new tab, then you can name it…

3. After name, press “ENTER”. That’s OK!


Share this: del.icio.us Digg Furl Reddit BlinkList blogmarks Google Ma.gnolia Netscape Newsvine Simpy Spurl StumbleUpon Technorati Windows Live Yahoo!

Related Post




Page 7 of 8« First...«45678»