Archive for the ‘Javascript’ Category

SE Trick – Modify RSS Feed URL using jQuery

This is a simple tutorial (to the original question) on how you can replace your existing StackExchange questions feed link with a third-party feed tracker service such as FeedBurner.

By default, your questions feed should look something like: http://{SITE_NAME}/feeds where you will also have answers feed: http://{SITE_NAME}/feeds/question/{QUESTION_ID}, user feed: http://{SITE_NAME}/feeds/user/{USER_ID} and tags feed: http://{SITE_NAME}/feeds/tag?tagnames={TAG_SLUG}&sort={SORT_VERB}.

Using simple jQuery, you can replace existing questions feed link to specified URL without effecting other feed links:

$(document).ready(function()
{
    if($("#feed-link-text a").text() == "recent questions feed")
    {
        $("#feed-link-text a").attr("href", "{NEW_FEED_URL}");
    }
});

Done!

Tags: , ,

Add lightbox effect to image links using jQuery

Lightboxs are very popular to display large images using model dialogs. It is elegant and easy to implement. Here I have a simple example of how you can use jQuery to find all anchors link to an image and hook it up with a lightbox automatically… by using jQuery, of course! (more…)

Tags: , ,

Add external link icon after all external links using jQuery

p03-ss02

Here is a very simple tutorial on how you can automatically insert an icon image after external (also known as off-site) links by using jQuery javacript framework. (more…)

Tags: , , ,

  • Pages

  • Categories

  • Archives

  • Recent Comments

  • Tag Cloud