Changeset 8820 for lang/javascript
- Timestamp:
- 04/04/08 06:58:44 (5 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/javascript/userscripts/niconico_thuminfo_check.user.js
r8787 r8820 129 129 function getInfo(item, cap){ 130 130 var text = ($T(resXML, item)[0]) ? $T(resXML, item)[0].textContent : "DELETED"; 131 if(cap){text = cap + text + " ";return text;} ;131 if(cap){text = cap + text + " ";return text;} 132 132 return text; 133 133 } … … 143 143 // add hyperlink to description 144 144 desc = desc.replace( 145 /https?:\/\/[-_.!~*'a-zA-Z0-9: /?@&=+$,%#]+|mylist\/\d+|user\/\d+|[a-z]{2}\d+/g,145 /https?:\/\/[-_.!~*'a-zA-Z0-9:\/?@&=+$,%#]+|mylist\/\d+|user\/\d+|[a-z]{2}\d+/g, 146 146 function(word){ 147 147 if(word.indexOf("http") > -1){return word.link(word);} … … 159 159 } 160 160 161 // add <br >161 // add <br/> 162 162 var br_num = tag_sum / 39 - 2; 163 163 for(var i = 0;i < br_num;i++){nico.info += "<br/>";} … … 311 311 var links = $x("descendant::a[contains(@href, 'watch')]", context); 312 312 eachLater(links, 0.1, function(link){ 313 var reg = new RegExp("http://.*?\ .nicovideo\.jp/watch/([^/?<>\"'#]+)");314 if( reg.test(link) &&315 !/http:\/\/.*?\/http.*?/.test(link)){313 var reg = new RegExp("http://.*?\\.nicovideo\\.jp/watch/([^/?<>\"'#]+)"); 314 if(!/http:\/\/.+?\/http.+?/.test(link) && 315 reg.test(link)){ 316 316 var id= RegExp.$1; 317 317 if(!nicoVideo) new nicoVideo();
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)