making useless things almost useful

Ever wonder what the point of that rss icon in firefox is? Ever go to a blog that you know has an rss feed, but you can’t find that stupid orange XML icon?

It is suppose to make subscribing to rss feeds easier. The problem with firefox’s icon is that you can’t use anything except firefox to read the feeds. Why isn’t there a “copy RSS url to clipboard” context menu?? Features that have such great potential but fail to really do anything are worse than useless, they are frustrating.

How this little icon works is that when firefox sees a <link/> in the header part of the html page pointing to a rss feed, it turns on and allows you to bookmark it. Blarg! I would rather it just go away.

I have resorted to Ctrl+U too many times. I am quite sick of it. So grease monkey to the rescue. I hacked up a quick script that grabs all link elements in the html head and puts them in a simple drop down menu.

Give it a shot and let me know how it goes.

Script is at: http://blogs.openaether.org/data/headerlinks.user.js

Comments (2)

  1. Nolan Eakins wrote::

    Had to one up you:

    // Header Links
    // version 0.0.0.0.0
    // 2006-03-27
    // Copyright (c) 2006, Justin Kikiy
    // released nder the GPL license
    // http://www.gnu.org/copyleft/gpl.html
    //
    // ———————————————————————
    //
    // I have no intent of maintaining this or making it look pretty.
    // Feel free to submit patches via the comments on
    // http://blogs.openaether.org/?p=160
    //
    //
    // ———————————————————————
    //
    // This is a Greasemonkey user script.
    //
    // To install, you need Greasemonkey: http://greasemonkey.mozdev.org/
    // Then restart Firefox and revisit this script.
    // Under Tools, there will be a new menu item to “Install User Script”.
    // Accept the default configuration and install.
    //
    // To uninstall, go to Tools/Manage User Scripts,
    // select “Hello World”, and click Uninstall
    //
    // ———————————————————————
    //
    // ==UserScript==
    // @name Header Links
    // @namespade http://blogs.openaether.org/data
    // @description grabs all links in the header and inserts them in a popup list
    // @include *
    // ==/UserScript==

    window.displayLinkWindow = function()
    {
    var wnd = document.getElementById(‘link-window’);
    if(!wnd) {
    wnd = createLinkWindow();
    }

    wnd.style.visibility = ‘visible’;
    return wnd;
    }

    window.closeLinkWindow = function()
    {
    var wnd = document.getElementById(‘link-window’);
    if(wnd) {
    wnd.style.visibility = ‘hidden’;
    return true;
    }
    else {
    return false;
    }
    }

    window.createLinkWindow = function()
    {
    /* Create the container */
    var wnd = document.createElement(‘div’);
    wnd.setAttribute(‘id’, ‘link-window’);
    wnd.style.position = ‘fixed’;
    wnd.style.top = ’20%’;
    wnd.style.bottom = ’20%’;
    wnd.style.left = ’20%’;
    wnd.style.right = ’20%’;
    wnd.style.backgroundColor = ‘white’;
    wnd.style.color = ‘black’;
    wnd.style.border = ‘solid 2px black’;
    wnd.style.zindex = 100;
    wnd.style.textAlign = ‘left’;
    wnd.style.fontSize = ‘x-large’;
    wnd.style.mozBorderRadius = ’10px’;

    /* Create a close link */
    var closer = document.createElement(‘a’);
    closer.setAttribute(‘href’, ‘#’);
    closer.addEventListener(‘click’, window.closeLinkWindow, true);
    closer.style.float = ‘right’;
    closer.innerHTML = ‘Close’;

    wnd.appendChild(closer);

    /* Populate with the links */
    var links = document.getElementsByTagName(‘link’);
    if(!links) {
    return false;
    }

    var list = document.createElement(‘ul’);

    for(var i = 0; i

    Tuesday, March 28, 2006 at 2:57 am #
  2. zion wrote::

    Nolan’s update is at

    http://nolan.eakins.net/drupal_files/headerlinks.user.js

    Wednesday, March 29, 2006 at 2:39 pm #