Archive

Posts Tagged ‘add-on’

Online Security

June 29, 2013 Leave a comment

Read this: The Best Browser Extensions that Protect Your Privacy @lifehacker.

I installed the following extensions:

Categories: firefox, security Tags: ,

Install a Greasemonkey script from a local file

Problem
You have downloaded a Greasemonkey script but… how to install it?

Solution
Here I suppose you have the Greasemonkey add-on installed (Hey, what is GM?). Well, I didn’t find anywhere the option “install from local file“. A GM script is called *.user.js and if you open the URL (http://...) of such a script, GM will recognize it and offer to install it (for this GM must be enabled). However! If you open your script locally (file://...), nothing happens. WTF?

Calm down. You know Python, right? The Swiss army knife of programmers. Just navigate to the directory where the GM script is located and start a web server:

$ python -m SimpleHTTPServer

Now open the URL http://localhost:8000 , click on the user script and GM will offer to install it. Python, what would I do without you?

User scripts are installed in this directory: “~/.mozilla/firefox/xxxxxxxx.default/gm_scripts“. Here you will find a config.xml file too that is created by GM.

Example
I installed this way this script: Greasemonkey: focus first input field. This script puts the focus on the first input field. I use it with Amazon and IMDB and works like a charm.

Become a Reddit power user

Goal
You want to become a Reddit power user.

Tip
Install the Reddit Enhancement Suite Firefox add-on. The result will be a Reddit on steroids :)

Links

Categories: firefox Tags: , ,

Siphon – Add-on Synchronizer for Firefox

Problem
You have Firefox on several machines and you want to have the same add-ons everywhere. Also, when you re-install a machine, you want to have back your favorite add-ons.

Solution
Siphon will manage and sync all your Firefox Add-ons with your different computers. It will also save your Add-on list if you ever need to reinstall Firefox.

Read about Siphon on Lifehacker.

Categories: firefox Tags: , ,

Hide an HTML element on a website

February 10, 2012 Leave a comment

Problem
You have a favourite website which contains an HTML element that bugs you. You simply want to get rid of that element. How to block it?

Solution
So far I was writing custom filters manually. With Firebug I could analyze the source code of any element. Then I added an Adblock Plus custom filter based on the previously discovered HTML source.

But there is a better way! Use Element Hiding Helper (EHH), which is a companion extension for Adblock Plus meant to make creating element hiding rules easier. Visit the link for a short guide.

Tips
You can switch the preview on/off, which is a great way to see if you block the correct element. If you use Vimperator, you might want to disable its shortcuts with Shift + Esc to be able to use EHH’s own shortcuts.

Update (20120220)
I installed this add-on on another machine but the ABP icon didn’t appear. On the bar I made a right click -> Customize…, but the icon was not there either. Solution: right click on the bar and enable the Add-on Bar. It will appear at the bottom. As it disturbed me, after using the EHH I disabled the Add-on Bar.

Thanks Yves for the tip!

Copy the URL and the title of the current web page to the clipboard

March 18, 2011 Leave a comment

The following tips are from the post “My vimperatorĀ settings“, but they are somewhat hidden in the text :)

So, when browsing, a common task is to get the address or the title of the current web page. Getting the address is easy, but for the title we need to consult the page source. How to get these data painlessly and copy them to the clipboard?

Steps:

  • Visit the post “My vimperator settings” and install vimperator + my config file.
  • For copying the URL address, use the command “y”.
  • For copying the title of the page, use the command “ALT + y”.

Essential Firefox add-ons

March 14, 2011 Leave a comment
Categories: firefox Tags: , ,

Save your current Firefox tabs and restore them later

March 14, 2011 3 comments

Problem

When you work on a project, usually you have lots of tabs open in Firefox: some Google results, related blog posts, API documentations, etc. If you use several machines, it would be useful to save the current tab list to a file, and restore the list on another machine and continue the work from where you stopped.

Solution

Save the current tab list

What you need is the URL Lister Firefox add-on (official home page is here). Once installed, go to Tools -> URL Lister…, copy the list to the clipboard and save it to a file, send it to you in e-mail, etc.

Restore the tab list

For restoring the tab list, use the script open_in_tabs.py. Example:

cat url_list.txt | ./open_in_tabs.py

Real-life scenario

You are working on a (hobby) project on your desktop machine. You feel like going to the library where you want to continue the project on your laptop. Just save the tab list and open the very same tabs on your laptop.

Related tip

If you need to restart Firefox and/or your machine, you can ask Firefox to restore your tab list. Go to Edit -> Preferences -> General tab, and next to “When Firefox starts“, select “Show my windows and tabs from last time“.

Categories: firefox, python Tags: , , ,

Who is hosting a given website?

March 9, 2011 1 comment

To find out who is hosting a given website, visit http://www.whoishostingthis.com/.

Example: http://www.whoishostingthis.com/wordpress.com

Related work

You can also install the Flagfox Firefox add-on. Then, with a simple click you can get lots of information about the current page you are visiting.

Categories: firefox, network Tags: , ,

Patch to Google Translate https pages

February 7, 2011 10 comments

Problem

When you want to translate a page with Google Translate that uses the HTTPS protocol, you will get an error. Translation only works with HTTP addresses. Here is how to reproduce the problem:

You will get a beautiful “Sorry, this URL is invalid” error.

Explanation:

This a known bug on the side of Google but they don’t rush to correct it. In the address bar you have the string “http://translate.google.com/translate?js=n&prev=_t&hl=en&ie=UTF-8&layout=2&eotf=1&sl=auto&tl=en&u=https%3A%2F%2Fubuntulife.wordpress.com%2F”. Notice that the address to be translated begins with https. In the upper frame, Google Translate transforms this address to “http://ubuntulife.wordpress.com:443/”, i.e. port 443 is added automatically.

Update (20110211): Google has a clarification. In this thread, Google guy Josh says the following: “Currently our webpage translation service will not translate secure https pages. This is because such pages often have secure content, that you wouldn’t want to send over the wire plain text to Google Translate.” That is, they know about this problem but they don’t have a good solution.

Manual workaround #1:
Remove the port “:443″ from the Google Translate textfield and press the button Translate.

Manual workaround #2:
In the address bar, locate the string https and change it to http. Then press Enter to reload the page. The port “443″ will also disappear.

Workaround for the lazy ones

Let’s use a simple bookmarklet that implements the manual method #2:

javascript:
var l = document.location;
var h = l.href;
var https = encodeURIComponent('https://');   // https%3A%2F%2F
var http = encodeURIComponent('http://');   // http%3A%2F%2F
l.href = h.replace(https, http);
void(1);

Installation:
Open this page in a new tab. There, you will find a link “ReTr” (re-translate). Drag and drop that link to the bookmark bar.

Usage:
Once the ReTr (re-translate) bookmarklet is installed, try to translate an HTTPS page. When you get the error message, just click on the ReTr bookmarklet and the page should be translated correctly.

Translate with Flagfox

Flagfox is a Firefox add-on that can “display a country flag depicting the location of the current website’s server and provides a multitude of tools such as site safety checks, whois, translation, similar sites, validation, URL shortening, and more…

How to translate a page with Flagfox: right click on the country flag in the address bar -> select Google Translate. You will get an error message with HTTPS pages, but you can correct it with the previously mentioned “ReTr” bookmarklet.

Follow

Get every new post delivered to your Inbox.

Join 71 other followers