Archive for the 'Internet & Blogging' Category

My Greasemonkey script for TVsubtitles

I’m often going to TVsubtitles to download subtitles for TV shows episodes. But the original page doesn’t provide an optimized flow: for example, on the home page there are two sections called “Latest subtitles” and “Most downloaded subtitles”, but they don’t link to the subtitle files. Instead they link to intermediate nagging pages where you then can download the subtitles.

For example, today it appears like this:

tvsub00

Without Greasemonkey script

the Weeds 5×01 doesn’t link to the subtitle file, but links actually to an intermediate page:

tvsub01

Intermediate (and useless) download page

To remediate this and get direct download links, I’ve made the following Greasemonkey script:

// ==UserScript==
// @name           tvsubtitles.net
// @namespace      tvsubtitles.net
// @description    tvsubtitles.net
// @include        http://www.tvsubtitles.net/*
// ==/UserScript==

// http://www.tvsubtitles.net/subtitle-63109.html (/subtitle-) -->
// http://www.tvsubtitles.net/download-63109.html (/download-)

var allLinks, thisLink;

xpath = '//a[contains(@href, "subtitle-")]';

allLinks = document.evaluate(xpath,document,
    null,
    XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,
    null);

for (var i = 0; i < allLinks.snapshotLength; i++) {
	thisLink = allLinks.snapshotItem(i);
	thisLink.href = thisLink.href.replace(/subtitle-/,  "download-");

	if( thisLink.title != "" ) {
	   thisLink.firstChild.textContent = thisLink.firstChild.textContent + " (" + thisLink.title + ")";
	}
}

With that script, the link to the intermediate page is replaced by a link to the subtitle file, and some information about the release corresponding to that sub file is also added:

tvsub02

Using my Greasemonkey script

UPDATE: I’ve just seen that there are 2 similar existing scripts on userscripts.org. At least mine is the only one that add the Release info to the links ;-).

Google Redesigned extension para Firefox

Google Redesigned is a Mozilla Firefox extension designed by Globex Designs that aims to fully redesign the look and feel of popular Google services. This is achieved with Cascading StyleSheet (CSS) files which are loaded on the client’s browser. The extension simplifies the use of these styles by providing auto-updates, easy management and notifications of changes. You can also download and use the styles individually by going to their respective pages.

via Globex Designs Inc. – Google Redesigned.

Blog powered by Opensolaris

    Opensolaris Fan As of this post, this blog is now powered by AMP: Apache 2.2.9, MySQL 5.0.67 and PHP 5.2.6 on my new Opensolaris 2008.11 home server.

    Performance will hopefully be better!

    Mozilla Firefox for HP Virtual Solutions

    He descubierto hoy que HP y Symantec han sacado el Firefox Virtual, una version de Firefox que integra la tecnologia Symantec Endpoint Virtualization Suite, que lo hace todavia mas seguro: lo que instales o lances desde Firefox se ejecutara e instalara en una “capa virtual”, con lo que se podra volver atras facilmente con un simple click.

    De momento esta basado en  Mozilla Firefox 2.0.0.15 (When the development for Mozilla Firefox for HP Virtual Solutions began, Firefox 3.0 was not yet in final release).

    Firefox already does a lot to ensure that you stay safe on the Web. But sometimes the unexpected happens. Been surfing the Web with undesired results? Machine getting slow lately? Things showing up that you know shouldn’t be there? With Mozilla Firefox for HP Virtual Solutions, changes made to your machine from within Firefox are saved into the virtual layer and can be easily un-done, like you’d never been on the Net Quickly put things back to their original state by clicking the “Reset” shortcut on your Start Menu:

    Resetting the virtual Web browser

    via Welcome to Mozilla Firefox for HP Virtual Solutions.

    Un poco mas sobre SVS:

    Software Virtualization Solution

    SVS aggregates the real and virtual file systems into one view for the end user.

    Me ha costado un poco ver donde se baja, y — lo malo — creo que sera de pago!:

    Evaluation downloads of SVS Standard and SVS Professional may be obtained here.

    ShareThis: extensión para Firefox

    Los de ShareThis han hecho un plugin para Firefox, para faciliar el compartir contenido con tus amigos, y tus redes sociales favoritas: Facebook, Live Space,…

    Share what you want with whom you want (how you want) — at the very moment you want. ShareThis is here to simplify and accelerate your online world. In short, we make sharing content as instantaneous and customizable as possible.

    via Download the Plugin | ShareThis.




    Close
    Powered by ShareThis