SHARE
TWEET

Hasan Tayyar

a guest May 25th, 2009 123 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name           test3
  3. // @description    tayyar test3
  4. // @copyright      2009, Hasan Tayyar BEŞİK
  5. // @license        GPL version 3 or any later version (http://www.gnu.org/copyleft/gpl.html)
  6. // @include        *
  7. // ==/UserScript==
  8.  
  9. // jQuery eklendi
  10. var jq = document.createElement('script');
  11. jq.src = 'http://jquery.com/src/jquery-latest.js';
  12. jq.type = 'text/javascript';
  13. document.getElementsByTagName('head')[0].appendChild(jq);
  14.  
  15. // jQuery yüklenme durumu kontrolü
  16. function GM_wait() {
  17.  if(typeof unsafeWindow.jQuery == 'undefined') { window.setTimeout(GM_wait,100); }
  18.  else { $ = unsafeWindow.jQuery; twit_kontrol(); }
  19. }
  20. GM_wait();
  21.  
  22. function twit_kontrol(){
  23.  
  24. var obje = document.createElement("div");
  25. obje.innerHTML =  '<div style="width:100%;height:25px;z-index:100; background:#7FDFF8;color:#050505;position:relative; top:0" id="twits"></div>';
  26. document.body.insertBefore(obje, document.body.firstChild);
  27. var siteName = 'hasantayyar';
  28. $.getJSON(
  29. 'http://search.twitter.com/search.json?callback=?&rpp=50&q=from:' + siteName,
  30.  function(data) {
  31.  $.each(data, function(i, tweets) {
  32.  if(tweets[0].text !== undefined)
  33.  $('#twits').append('<span>' + tweets[0].text + '</span><br />');
  34.  });
  35.  }
  36. );
  37. var st=setTimeout("fonksiyon()",2000);
  38. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top