Changeset 16870 for lang/javascript/userscripts
- Timestamp:
- 07/30/08 17:42:39 (4 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/javascript/userscripts/niconicofavlist.user.js
r16423 r16870 11 11 12 12 var NicoNicoFavlist = { 13 version: "1.1 4",13 version: "1.15", 14 14 getUserAgent: function () { 15 15 return "NicoNicoFavlist/" + NicoNicoFavlist.version + " Greasemonkey"; … … 688 688 if (changed) favlist.save(); 689 689 }, 690 addToPlaylist: function () { 691 if (typeof w.gm_playlistController == "undefined") return; 692 693 var addVideos = []; 694 for (var k in this.list) { 695 var mylist = this.list[k], videos = mylist.newVideos; 696 for (var i = 0, len = videos.length; i < len; i++) { 697 addVideos.push(videos[i]); 698 } 699 mylist.clearAll(); 700 } 701 702 if (addVideos.length > 0) { 703 w.gm_playlistController.pushVideos(addVideos); 704 } 705 }, 690 706 show: function (elem) { 691 707 var div = document.createElement("div"); … … 779 795 var self = this; 780 796 this.updateAllButton = this.addButton(buttons, "いますぐ更新", function () { self.updateAll(); }); 797 798 var checkPlaylist = function () { 799 if (typeof w.gm_playlistController != "undefined") { 800 var b = self.addButton(buttons, "プレイリストに移動", function () { self.addToPlaylist(); }); 801 b.style.marginLeft = "5px"; 802 return true; 803 } 804 } 805 checkPlaylist() || setTimeout(checkPlaylist, 1); 781 806 782 807 this.container.appendChild(buttons);
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)