Changeset 31081
- Timestamp:
- 03/12/09 02:11:52 (4 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/javascript/userscripts/easy_im_reading_now_isgd.user.js
r31076 r31081 5 5 // @include http://* 6 6 // @include https://* 7 // @version 0.0. 27 // @version 0.0.3 8 8 // ==/UserScript== 9 9 // 10 // last modified: 2009/03/12 01: 2010 // last modified: 2009/03/12 01:53 11 11 // 12 12 … … 97 97 function createTinyURL(url, callback, error) { 98 98 GM_xmlhttpRequest({ 99 method : ' post',99 method : 'get', 100 100 url : 'http://is.gd/api.php?longurl=' + encodeURIComponent(url), 101 headers: { 'Content-type': 'application/x-www-form-urlencoded' },102 101 onload : function(res) { 103 if (res.responseText != 'Error') callback(res.responseText)102 if (res.responseText.indexOf('Error') != 0) callback(res.responseText) 104 103 else if (typeof error == 'function') error(res) 105 104 },
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)