Changeset 8961 for lang/javascript
- Timestamp:
- 04/06/08 09:47:11 (5 years ago)
- Location:
- lang/javascript/userscripts
- Files:
-
- 9 modified
-
fastlookupalc.user.js (modified) (1 diff)
-
fastlookupjpanden.user.js (modified) (1 diff)
-
flickralwaysshowexif.user.js (modified) (1 diff)
-
flickrshowlicenses.user.js (modified) (1 diff)
-
hatena.confirmhatenastar.user.js (modified) (1 diff)
-
hatena.replaceStarByProfileIcon.user.js (modified) (1 diff)
-
minibuffer.user.js (modified) (7 diffs)
-
playontumblr.user.js (modified) (1 diff)
-
reblogcommand.user.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/javascript/userscripts/fastlookupalc.user.js
r4401 r8961 59 59 function $N(name, attr, childs) { 60 60 var ret = document.createElement(name); 61 for ( k in attr) {61 for (var k in attr) { 62 62 if (!attr.hasOwnProperty(k)) continue; 63 63 v = attr[k]; -
lang/javascript/userscripts/fastlookupjpanden.user.js
r7511 r8961 1439 1439 function $N(name, attr, childs) { 1440 1440 var ret = document.createElement(name); 1441 for ( k in attr) {1441 for (var k in attr) { 1442 1442 if (!attr.hasOwnProperty(k)) continue; 1443 1443 v = attr[k]; -
lang/javascript/userscripts/flickralwaysshowexif.user.js
r7031 r8961 136 136 function $N(name, attr, childs) { 137 137 var ret = document.createElement(name); 138 for ( k in attr) {138 for (var k in attr) { 139 139 if (!attr.hasOwnProperty(k)) continue; 140 140 v = attr[k]; -
lang/javascript/userscripts/flickrshowlicenses.user.js
r4401 r8961 74 74 function $N(name, attr, childs) { 75 75 var ret = document.createElement(name); 76 for ( k in attr) {76 for (var k in attr) { 77 77 if (!attr.hasOwnProperty(k)) continue; 78 78 v = attr[k]; -
lang/javascript/userscripts/hatena.confirmhatenastar.user.js
r8727 r8961 26 26 _addStar.call(self, e); 27 27 } 28 } 28 }; 29 29 } 30 30 })(this.unsafeWindow || window); -
lang/javascript/userscripts/hatena.replaceStarByProfileIcon.user.js
r8728 r8961 8 8 9 9 (function(unsafeWindow){ 10 if ( unsafeWindow && unsafeWindow.Hatena &&unsafeWindow.Hatena.Star){11 var bindStarEntry = unsafeWindow.Hatena.Star.Entry.prototype.bindStarEntry;12 unsafeWindow.Hatena.Star.Entry.prototype.bindStarEntry = function(se){13 var self = this, stars = [];14 for (var i = 0,len = se.stars.length; i < len; i++){15 var star = se.stars[i];16 if (star.name) {17 var img = unsafeWindow.Hatena.User.getProfileIcon(star.name);18 //img.src = img.src.replace(/\/profile_s/,'/profile');img.width = img.height = 64;19 img.alt = star.name;20 if (!star.img) star.img = img;21 }22 stars.push(star);10 if (!unsafeWindow.Hatena || !unsafeWindow.Hatena.Star){ 11 return; 12 } 13 var bindStarEntry = unsafeWindow.Hatena.Star.Entry.prototype.bindStarEntry; 14 unsafeWindow.Hatena.Star.Entry.prototype.bindStarEntry = function(se){ 15 var self = this, stars = []; 16 for (var i = 0,len = se.stars.length; i < len; i++) { 17 var star = se.stars[i]; 18 if (star.name) { 19 var img = unsafeWindow.Hatena.User.getProfileIcon(star.name); 20 //img.src = img.src.replace(/\/profile_s/,'/profile');img.width = img.height = 64; 21 img.alt = star.name; 22 if (!star.img) star.img = img; 23 23 } 24 se.stars = stars; 25 bindStarEntry.call(self, se); 24 stars.push(star); 26 25 } 27 var showName = unsafeWindow.Hatena.Star.Star.prototype.showName; 28 unsafeWindow.Hatena.Star.Star.prototype.showName = function(e){ 29 this.screen_name = this.name; 30 showName.call(this,e); 31 }; 32 } 26 se.stars = stars; 27 bindStarEntry.call(self, se); 28 }; 29 var showName = unsafeWindow.Hatena.Star.Star.prototype.showName; 30 unsafeWindow.Hatena.Star.Star.prototype.showName = function(e){ 31 this.screen_name = this.name; 32 showName.call(this,e); 33 }; 33 34 })(this.unsafeWindow||window); -
lang/javascript/userscripts/minibuffer.user.js
r8259 r8961 287 287 }); 288 288 }); 289 for( key in self.KEYBIND){289 for(var key in self.KEYBIND){ 290 290 (function(a){ 291 291 self.shortcutkey.addCommand({key:key, command:function(){a.call(self)}}); … … 996 996 // to keep compatibility 997 997 if(typeof hash.name == 'undefined'){ 998 for( name in hash){998 for(var name in hash){ 999 999 this.command[name] = hash[name]; 1000 1000 } … … 1086 1086 function $N(name, attr, childs) { 1087 1087 var ret = document.createElement(name); 1088 for (var k in attr) { 1089 if (!attr.hasOwnProperty(k)) continue; 1088 for (var k in attr) if (attr.hasOwnProperty(k)) { 1090 1089 var v = attr[k]; 1091 1090 if (k == "class") ret.className = v; … … 1111 1110 // $X 1112 1111 // based on: http://lowreal.net/blog/2007/11/17/1 1113 // 1112 // 1114 1113 // $X(exp); 1115 1114 // $X(exp, context); … … 1344 1343 if (!list) list = ["parallel", "wait", "next", "call", "loop"]; 1345 1344 if (!obj) obj = (function () { return this })(); 1346 for (var i = 0; i < list.length; i++) { 1347 var n = list[i]; 1348 obj[n] = Deferred[n]; 1349 } 1345 list.forEach(function (i) { 1346 obj[i] = Deferred[i]; 1347 }); 1350 1348 return Deferred; 1351 1349 }; … … 1366 1364 return d; 1367 1365 } 1368 xhttp.get = function (url) { return xhttp({method:"get", url:url}) } 1369 xhttp.post = function (url, data) { return xhttp({method:"post", url:url, data:data, headers:{"Content-Type":"application/x-www-form-urlencoded"}}) } 1366 xhttp.get = function (url) { return xhttp({method:"get", url:url}) }; 1367 xhttp.post = function (url, data) { return xhttp({method:"post", url:url, data:data, headers:{"Content-Type":"application/x-www-form-urlencoded"}}) }; 1370 1368 1371 1369 … … 1386 1384 return d; 1387 1385 } 1388 http.get = function (url) { return http({method:"get", url:url}) } 1389 http.post = function (url, data) { return http({method:"post", url:url, data:data, headers:{"Content-Type":"application/x-www-form-urlencoded"}}) } 1386 http.get = function (url) { return http({method:"get", url:url}) }; 1387 http.post = function (url, data) { return http({method:"post", url:url, data:data, headers:{"Content-Type":"application/x-www-form-urlencoded"}}) }; 1390 1388 1391 1389 Deferred.Deferred = Deferred; -
lang/javascript/userscripts/playontumblr.user.js
r8733 r8961 12 12 e.initMouseEvent("click",true,true,unsafeWindow,1,10,50,10,50,0,0,0,0,1,n); 13 13 n.dispatchEvent(e); 14 } 14 }; 15 15 16 16 addShortcutkey({ -
lang/javascript/userscripts/reblogcommand.user.js
r7308 r8961 69 69 function createPostData(params){ 70 70 var arr = []; 71 for( param in params){71 for(var param in params){ 72 72 if(param != "preview_post"){ 73 73 arr.push(encodeURIComponent(param));
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)