Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-10-2012, 07:08 PM   PM User | #1
carruth0802
New to the CF scene

 
Join Date: Sep 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
carruth0802 is an unknown quantity at this point
Help with tweetdeck script

I am trying to get the following script to work on the Google Chrome browser, it works fine in Firefox. What it does is put a "clean" button at the top of each tweetdeck column when you hover over it. When pressed the tweets in that column are cleared. The button shows up in the Chrome browser but when pressed nothing happens. Any help would be appreciated.
Thank
Bob

Code:
// ==UserScript==
// @name           TweetDeck Clear Button
// @namespace      http://dvdbng.com
// @description    Adds a clear column button directly accesible
// @include        https://web.tweetdeck.com/*
// ==/UserScript==

var $ = unsafeWindow.jQuery;
unsafeWindow.TD_mustaches["column/column_header.mustache"] = unsafeWindow.TD_mustaches["column/column_header.mustache"].replace('<div class="options-nav">','<div class="options-nav"><a class="GS_clean">clean</a>');

$(document.body).delegate(".GS_clean","click",function(){
    $(this).parents(".column")
        .find("a[data-action=options]").click().end()
        .find("input[data-action=clear]").click().end()
        .find("a[data-action=options]").click()
});
carruth0802 is offline   Reply With Quote
Reply

Bookmarks

Tags
tweetdeck, tweets, twitter

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:20 AM.


Advertisement
Log in to turn off these ads.