DiliBau.info

Tag: JavaScript

Twit this

by DiliBau on Dec.26, 2009, under Code, Fun

Nu prea folosesc Twitter. Pur si simplu il neglijez la fel cum imi neglijez si blogul cu toate ca mi-am creat un buton in FireFox care sa ma ajute sa postez mai repede.

Si daca tot il neglijez m-am gandit sa pun la dispozitia tuturor micul meu buton, poate are altcineva nevoie de el mai mult decat am eu.

Codul JavaScript pentru buton este:

(function(){ var status = prompt(“Twit this”); status=status.trim(); if(status.length==0){ alert(“I can`t submit an empty string”); return; } while(status.indexOf(” “) != -1) status = status.replace(” “, “+”); window.open(“http://www.twitter.com/home?status=”+status); })()

Pentru a-l adauga in FireFox trebuie pur si simplu sa faci drag`n`drop la link-ul de mai jos in “Bookmarks toolbar”:
Twit this.

Happy twitting!

1 Comment :, , , more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Blogroll

A few highly recommended websites...