var l10n=wp.media.view.l10n;function doMyTabContent(){$("body .media-modal-content .media-frame-content")[0].innerHTML='<div class="myTabContent">Golap Hazi</div>'}wp.media.view.MediaFrame.Select.prototype.browseRouter=function(e){e.set({upload:{text:l10n.uploadFilesTitle,priority:20},browse:{text:l10n.mediaLibraryTitle,priority:40},my_tab:{text:"My tab",priority:60}})},jQuery(document).ready((function(e){wp.media&&(wp.media.view.Modal.prototype.on("open",(function(){"My tab"==e("body").find(".media-modal-content .media-router a.media-menu-item.active")[0].innerText&&doMyTabContent()})),e(wp.media).on("click",".media-router a.media-menu-item",(function(e){"My tab"==e.target.innerText&&doMyTabContent()})))}));