cevap

1

Ayrıca, komut dosyasının Opera dostu olmasını istiyorsanız, yine de GM_xmlhttpRequest özelliğini kullanamayacaksınız. Ancak YQL ve jQuery kullanarak, bunu şöyle yapabilirsiniz: maxage parametresine bilgi için

var getCrossDomain = function (url, callback, maxage) { 
     if (typeof (url) !== 'undefined') { 
      var yql = 'http://query.yahooapis.com/v1/public/yql?q=' + encodeURIComponent('select * from html where url="' + url + '"') + '&diagnostics=false&format=xml&callback=?&_maxage='; 
      if (typeof (maxage) === 'undefined') { 
       yql += '10000'; // Value is in ms 
      } 
      $.getJSON(yql, function (data) { 
       if (typeof (callbackX) === 'function') { 
        callback(data.results[0]); 
       } 
      }).fail(function (jqXHR, textStatus, errorThrown) { 
       // Some code here to handle a failed request 
      }); 
     } 
    }; 

Oku http://www.yqlblog.net/blog/2010/03/12/avoiding-rate-limits-and-getting-banned-in-yql-and-pipes-caching-is-your-friend/.