firefox userChrome.js greasemonkeyスクリプトスレ 4at SOFTWARE
firefox userChrome.js greasemonkeyスクリプトスレ 4 - 暇つぶし2ch899:名無しさん@お腹いっぱい。
08/06/13 19:46:10 KLgoFiQi0
>>898
--- BHNewTab1.1mod3.uc.js 2008-05-31 18:22:30.558507200 +0900
+++ BHNewTab1.1mod4.uc.js 2008-06-13 19:38:44.232416000 +0900
@@ -296,9 +296,9 @@
var el = doc.getElementById('placesContext_openContainer:tabs');
el.setAttribute('oncommand','this.run(event);');
el.run = function(event){
- var _view = PlacesUtils.getViewForNode(doc.popupNode).controller._view;
+ var _view = PlacesUIUtils.getViewForNode(doc.popupNode).controller._view;
var node = _view.selectedNode;
- if(_view.hasSingleSelection && PlacesUtils.nodeIsContainer(node)) PlacesUtils.openContainerNodeInTabs(_view.selectedNode,event);
+ if(_view.hasSingleSelection && PlacesUtils.nodeIsContainer(node)) PlacesUIUtils.openContainerNodeInTabs(_view.selectedNode,event);
else{
let urllist = [];
let contents = PlacesUtils.getFolderContents(node.itemId, false, false).root;
@@ -307,12 +307,12 @@
if (PlacesUtils.nodeIsURI(child))
urllist.push(child);
}
- PlacesUtils.openURINodesInTabs(urllist,event);
+ PlacesUIUtils.openURINodesInTabs(urllist,event);
}
};

- win.PlacesUtils.openContainerNodeInTabs = function(node,event){
- var urllist = this.getURLsForContainerNode(node);
+ win.PlacesUIUtils.openContainerNodeInTabs = function(node,event){
+ var urllist = PlacesUtils.getURLsForContainerNode(node);
if(!this._confirmOpenInTabs(urllist.length)) return;
var urls = [];
for(let i = 0; i < urllist.length; i++){


次ページ
続きを表示
1を表示
最新レス表示
レスジャンプ
類似スレ一覧
スレッドの検索
話題のニュース
おまかせリスト
オプション
しおりを挟む
スレッドに書込
スレッドの一覧
暇つぶし2ch