Last active
September 27, 2025 02:09
-
-
Save ttttmr/577acf8a7ddf97c8972a6132a15e238a to your computer and use it in GitHub Desktop.
Revisions
-
tmr revised this gist
May 15, 2019 . No changes.There are no files selected for viewing
-
tmr revised this gist
May 15, 2019 . No changes.There are no files selected for viewing
-
tmr revised this gist
Apr 28, 2019 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -87,12 +87,14 @@ javascript: (function () { rsshub_path = youtube_channel + path[2]; } else { alert('Use it in YouTube channel page'); return; } } else if (domain == 'github.com') { if (path[3] == 'issues'){ rsshub_path = github_issues + path[1] + '/' + path[2]; } else { alert('Use it in GitHub Issues page'); return; } } if (rsshub_path == '') { -
tmr revised this gist
Mar 24, 2019 . 1 changed file with 7 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -14,6 +14,7 @@ javascript: (function () { let weibo_user = '/weibo/user/'; let instagram_user = '/instagram/user/'; let youtube_channel = '/youtube/channel/'; let github_issues = '/github/issue/'; let w = 800; let h = 600; @@ -87,6 +88,12 @@ javascript: (function () { } else { alert('Use it in YouTube channel page'); } } else if (domain == 'github.com') { if (path[3] == 'issues'){ rsshub_path = github_issues + path[1] + '/' + path[2]; } else { alert('Use it in GitHub Issues page') } } if (rsshub_path == '') { console.log('RSS not found'); -
tmr revised this gist
Feb 15, 2019 . 2 changed files with 135 additions and 126 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,135 @@ javascript: (function () { let rsshub_host = 'https://rsshub.app'; let cnblog = 'https://www.cnblogs.com/'; let csdn = 'https://blog.csdn.net/'; let jianshu_user = '/jianshu/user/'; let zhihu_user = '/zhihu/people/activities/'; let zhihu_collection = '/zhihu/collection/'; let bilibili_user = '/bilibili/user/video/'; let jike_topic = '/jike/topic/'; let jike_square = '/jike/topic/square/'; let jike_user = '/jike/user/'; let twitter_user = '/twitter/user/'; let weibo_user = '/weibo/user/'; let instagram_user = '/instagram/user/'; let youtube_channel = '/youtube/channel/'; let w = 800; let h = 600; let feedurl = ''; let domain = location.host; let path = location.pathname.split('/'); if (domain == 'www.cnblogs.com') { feedurl = cnblog + path[1] + '/rss'; } else if (domain == 'blog.csdn.net') { feedurl = csdn + path[1] + '/rss/list'; } if (feedurl != '') { console.log('RSS found in Website'); } else { console.log('RSS not found in Website'); console.log('Trying RSSHub ... '); let rsshub_path = ''; if (domain == 'www.jianshu.com') { if (path[1] == 'u') { rsshub_path = jianshu_user + path[2]; } else { alert('Use it in Jianshu user page'); return; } } else if (domain == 'www.zhihu.com') { if (path[1] == 'people' || path[1] == 'org') { rsshub_path = zhihu_user + path[2]; } else if (path[1] == 'collection') { rsshub_path = zhihu_collection + path[2]; } else { alert('Use it in Zhihu user page'); return; } } else if (domain == 'space.bilibili.com') { rsshub_path = bilibili_user + path[1]; } else if (domain == 'web.okjike.com') { if (path[1] == 'topic') { if (path[3] == 'official') { rsshub_path = jike_topic + path[2]; } else if (path[3] == 'user') { rsshub_path = jike_square + path[2]; } } else if (path[1] == 'user') { rsshub_path = jike_user + path[2]; } else { alert('Use it in Jike user or topic page'); return; } } else if (domain == 'twitter.com') { rsshub_path = twitter_user + path[1]; } else if (domain == 'm.weibo.cn') { if (path[1] == 'profile') { rsshub_path = weibo_user + path[2]; } else { alert('Use it in Weibo user home page'); return; } } else if (domain == 'weibo.com' || domain == 'www.weibo.com') { rsshub_path = weibo_user + $CONFIG.oid; } else if (domain == 'www.instagram.com') { if (path[1] == 'p') { alert('Use it in Instagram user home page'); return; } else { rsshub_path = instagram_user + path[1]; } } else if (domain == 'www.youtube.com') { if (path[1] == 'channel') { rsshub_path = youtube_channel + path[2]; } else { alert('Use it in YouTube channel page'); } } if (rsshub_path == '') { console.log('RSS not found'); } else { console.log('RSS found in RSSHub'); feedurl = rsshub_host + rsshub_path; } } if (feedurl) { console.log(feedurl); feedurl = 'https://www.inoreader.com/?add_feed=' + feedurl; } else { feedurl = 'https://www.inoreader.com/bookmarklet/subscribe/' + encodeURIComponent(location.href); } console.log(feedurl); let b = window.screenLeft != undefined ? window.screenLeft : screen.left; let c = window.screenTop != undefined ? window.screenTop : screen.top; let width = window.innerWidth ? window.innerWidth : document.documentElement.clientWidth ? document.documentElement.clientWidth : screen.width; let height = window.innerHeight ? window.innerHeight : document.documentElement.clientHeight ? document.documentElement.clientHeight : screen.height; let d = width / 2 - w / 2 + b; let e = height / 2 - h / 2 + c; let f = window.open( feedurl, new Date().getTime(), 'width=' + w + ', height=' + h + ', top=' + e + ', left=' + d + 'location=yes,resizable=yes,status=no,scrollbars=no,personalbar=no,toolbar=no,menubar=no' ); if (window.focus) { f.focus(); } })(); This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,126 +0,0 @@ -
ttttmr revised this gist
Oct 10, 2018 . 1 changed file with 46 additions and 42 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,22 +1,21 @@ javascript: (function () { var host = 'https://rsshub.app/'; var w = 800; var h = 600; var add = 'https://www.inoreader.com/?add_feed='; var cnblog = 'https://www.cnblogs.com/'; var csdn = 'https://blog.csdn.net/'; var jianshu_user = host + 'jianshu/user/'; var zhihu_user = host + '/zhihu/people/activities/'; var zhihu_collection = host + 'zhihu/collection/'; var bilibili_user = host + 'bilibili/user/video/'; var jike_topic = host + 'jike/topic/'; var jike_square = host + 'jike/topic/square/'; var jike_user = host + 'jike/user/'; var twitter_user = host + 'twitter/user/'; var weibo_user = host + 'weibo/user/'; var instagram_user = host + 'instagram/user/'; var youtube_channel = host + 'youtube/channel/'; var url = 'https://www.inoreader.com/bookmarklet/subscribe/' + @@ -25,7 +24,7 @@ javascript: (function() { url = add + cnblog + location.pathname.split('/')[1] + '/rss'; } else if (location.host == 'www.jianshu.com') { if (location.pathname.split('/')[1] == 'u') { url = add + jianshu_user + location.pathname.split('/')[2]; } else { alert('请在简书用户页面使用'); return; @@ -42,13 +41,6 @@ javascript: (function() { alert('请在知乎用户页面使用'); return; } } else if (location.host == 'blog.csdn.net') { url = add + csdn + location.pathname.split('/')[1] + '/rss/list'; } else if (location.host == 'space.bilibili.com') { @@ -57,7 +49,7 @@ javascript: (function() { var path = location.pathname.split('/'); if (path[1] == 'topic') { if (path[3] == 'official') { url = add + jike_topic + path[2]; } else if (path[3] == 'user') { url = add + jike_square + path[2]; } @@ -87,36 +79,48 @@ javascript: (function() { } else { url = add + instagram_user + path[1]; } } else if (location.host == 'www.youtube.com') { if (location.pathname.split('/')[1] == 'channel') { url = add + youtube_channel + location.pathname.split('/')[2]; } else { alert('请在YouTube频道页使用'); } } else if (location.host == 'w.qnmlgb.tech') { if (location.pathname.split('/')[1] == 'authors') { url = add + 'https://q.qnmlgb.tech/w/rss/' + location.pathname.split('/')[2]; } else { alert('请在公众号主页使用'); } } console.log(url); var b = window.screenLeft != undefined ? window.screenLeft : screen.left; var c = window.screenTop != undefined ? window.screenTop : screen.top; var width = window.innerWidth ? window.innerWidth : document.documentElement.clientWidth ? document.documentElement.clientWidth : screen.width; var height = window.innerHeight ? window.innerHeight : document.documentElement.clientHeight ? document.documentElement.clientHeight : screen.height; var d = width / 2 - w / 2 + b; var e = height / 2 - h / 2 + c; var f = window.open( url, new Date().getTime(), 'width=' + w + ', height=' + h + ', top=' + e + ', left=' + d + 'location=yes,resizable=yes,status=no,scrollbars=no,personalbar=no,toolbar=no,menubar=no' ); if (window.focus) { f.focus(); } })(); -
ttttmr revised this gist
Oct 8, 2018 . 1 changed file with 5 additions and 12 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -14,8 +14,8 @@ javascript: (function() { var jike_topic_2 = 'https://pithyone.000webhostapp.com/jike/'; var jike_square = 'https://rsshub.app/jike/topic/square/'; var jike_user = 'https://rsshub.app/jike/user/'; var twitter_user = 'https://rsshub.app/twitter/user/'; var weibo_user = 'https://rsshub.app/weibo/user/'; var instagram_user = 'https://rsshub.app/instagram/user/'; var url = @@ -78,15 +78,7 @@ javascript: (function() { return; } } else if (location.host == 'weibo.com' || location.host == 'www.weibo.com') { url = add + weibo_user + $CONFIG.oid; } else if (location.host == 'www.instagram.com') { var path = location.pathname.split('/'); if (path[1] == 'p') { @@ -96,6 +88,7 @@ javascript: (function() { url = add + instagram_user + path[1]; } } console.log(url); var b = window.screenLeft != undefined ? window.screenLeft : screen.left; var c = window.screenTop != undefined ? window.screenTop : screen.top; var width = window.innerWidth @@ -126,4 +119,4 @@ javascript: (function() { if (window.focus) { f.focus(); } })(); -
ttttmr revised this gist
Sep 6, 2018 . 1 changed file with 71 additions and 25 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,21 +1,26 @@ javascript: (function() { var w = 800; var h = 600; var add = 'https://www.inoreader.com/?add_feed='; var cnblog = 'https://www.cnblogs.com/'; var csdn = 'https://blog.csdn.net/'; var jianshu_user_1 = 'http://jianshu.milkythinking.com/feeds/users/'; var jianshu_user_2 = 'https://rsshub.app/jianshu/user/'; var zhihu_user = 'https://rss.lilydjwg.me/zhihu/'; var zhihu_zhanlan = 'https://rss.lilydjwg.me/zhihuzhuanlan/'; var zhihu_collection = 'https://rsshub.app/zhihu/collection/'; var bilibili_user = 'https://rsshub.app/bilibili/user/video/'; var jike_topic_1 = 'https://rsshub.app/jike/topic/'; var jike_topic_2 = 'https://pithyone.000webhostapp.com/jike/'; var jike_square = 'https://rsshub.app/jike/topic/square/'; var jike_user = 'https://rsshub.app/jike/user/'; var twitter_user = ' https://rsshub.app/twitter/user/'; var weibo_user = ' https://rsshub.app/weibo/user/'; var instagram_user = 'https://rsshub.app/instagram/user/'; var url = 'https://www.inoreader.com/bookmarklet/subscribe/' + encodeURIComponent(location.href); if (location.host == 'www.cnblogs.com') { url = add + cnblog + location.pathname.split('/')[1] + '/rss'; } else if (location.host == 'www.jianshu.com') { @@ -26,9 +31,13 @@ javascript: (function() { return; } } else if (location.host == 'www.zhihu.com') { if ( location.pathname.split('/')[1] == 'people' || location.pathname.split('/')[1] == 'org' ) { url = add + zhihu_user + location.pathname.split('/')[2]; } else if (location.pathname.split('/')[1] == 'collection') { url = add + zhihu_collection + location.pathname.split('/')[2]; } else { alert('请在知乎用户页面使用'); return; @@ -38,7 +47,7 @@ javascript: (function() { alert('请在专栏页使用'); return; } else { url = add + zhihu_zhanlan + location.pathname.split('/')[1] + '?pic=cf'; } } else if (location.host == 'blog.csdn.net') { url = add + csdn + location.pathname.split('/')[1] + '/rss/list'; @@ -48,7 +57,7 @@ javascript: (function() { var path = location.pathname.split('/'); if (path[1] == 'topic') { if (path[3] == 'official') { url = add + jike_topic_1 + path[2]; } else if (path[3] == 'user') { url = add + jike_square + path[2]; } @@ -60,24 +69,61 @@ javascript: (function() { } } else if (location.host == 'twitter.com') { url = add + twitter_user + location.pathname.split('/')[1]; } else if (location.host == 'm.weibo.cn') { var path = location.pathname.split('/'); if (path[1] == 'profile') { url = add + weibo_user + path[2]; } else { alert('请在微博用户主页使用'); return; } } else if (location.host == 'weibo.com' || location.host == 'www.weibo.com') { var path = location.pathname.split('/'); if (path[1] == 'u') { url = add + weibo_user + path[2]; } else { alert( "请在微博用户主页按F12打开控制台,执行以下代码并点击 'https://www.inoreader.com/?add_feed=https://rsshub.app/weibo/user/'+/uid=(\\d+)/. exec(document.querySelector('.opt_box .btn_bed').getAttribute('action-data'))[1]" ); return; } } else if (location.host == 'www.instagram.com') { var path = location.pathname.split('/'); if (path[1] == 'p') { alert('请在用户主页使用'); return; } else { url = add + instagram_user + path[1]; } } var b = window.screenLeft != undefined ? window.screenLeft : screen.left; var c = window.screenTop != undefined ? window.screenTop : screen.top; var width = window.innerWidth ? window.innerWidth : document.documentElement.clientWidth ? document.documentElement.clientWidth : screen.width; var height = window.innerHeight ? window.innerHeight : document.documentElement.clientHeight ? document.documentElement.clientHeight : screen.height; var d = width / 2 - w / 2 + b; var e = height / 2 - h / 2 + c; var f = window.open( url, new Date().getTime(), 'width=' + w + ', height=' + h + ', top=' + e + ', left=' + d + 'location=yes,resizable=yes,status=no,scrollbars=no,personalbar=no,toolbar=no,menubar=no' ); if (window.focus) { f.focus(); } })(); -
ttttmr revised this gist
Jul 10, 2018 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -12,6 +12,7 @@ javascript: (function() { var jike = 'https://rsshub.app/jike/topic/'; var jike_square = 'https://rsshub.app/jike/topic/square/'; var jike_user = 'https://rsshub.app/jike/user/'; var twitter_user = ' https://rsshub.app/twitter/user/'; var url = 'https://www.inoreader.com/bookmarklet/subscribe/' + encodeURIComponent(location.href); @@ -57,6 +58,8 @@ javascript: (function() { alert('请在即刻用户页或主题页使用'); return; } } else if (location.host == 'twitter.com') { url = add + twitter_user + location.pathname.split('/')[1]; } var b = window.screenLeft != undefined ? window.screenLeft : screen.left; var c = window.screenTop != undefined ? window.screenTop : screen.top; -
ttttmr revised this gist
Jun 18, 2018 . 1 changed file with 1 addition and 64 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,43 +1,4 @@ javascript: (function() { var w = 640; var h = 400; var add = 'https://www.inoreader.com/?add_feed='; @@ -116,28 +77,4 @@ javascript: (function () { if (window.focus) { f.focus() } })() -
ttttmr revised this gist
Jun 18, 2018 . 1 changed file with 80 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -37,7 +37,86 @@ javascript: (function () { url = add + zhihu_zhanlan + location.pathname.split('/')[1]; } } else if (location.host == 'blog.csdn.net') { url = add + csdn + location.pathname.split('/')[1] + '/rss/list';javascript: (function() { var w = 640; var h = 400; var add = 'https://www.inoreader.com/?add_feed='; var cnblog = 'https://www.cnblogs.com/'; var csdn = 'https://blog.csdn.net/'; var jianshu_user_1 = 'http://jianshu.milkythinking.com/feeds/users/'; var jianshu_user_2 = 'https://rsshub.app/jianshu/user/'; var zhihu_user = 'https://rss.lilydjwg.me/zhihu/'; var zhihu_zhanlan = 'https://rss.lilydjwg.me/zhihuzhuanlan/'; var bilibili_user = 'https://rss.prprpr.me/bilibili/user/video/'; var jike = 'https://rsshub.app/jike/topic/'; var jike_square = 'https://rsshub.app/jike/topic/square/'; var jike_user = 'https://rsshub.app/jike/user/'; var url = 'https://www.inoreader.com/bookmarklet/subscribe/' + encodeURIComponent(location.href); if (location.host == 'www.cnblogs.com') { url = add + cnblog + location.pathname.split('/')[1] + '/rss'; } else if (location.host == 'www.jianshu.com') { if (location.pathname.split('/')[1] == 'u') { url = add + jianshu_user_2 + location.pathname.split('/')[2]; } else { alert('请在简书用户页面使用'); return; } } else if (location.host == 'www.zhihu.com') { if (location.pathname.split('/')[1] == 'people' || location.pathname.split('/')[1] == 'org') { url = add + zhihu_user + location.pathname.split('/')[2]; } else { alert('请在知乎用户页面使用'); return; } } else if (location.host == 'zhuanlan.zhihu.com') { if (location.pathname.split('/')[1] == 'p') { alert('请在专栏页使用'); return; } else { url = add + zhihu_zhanlan + location.pathname.split('/')[1]; } } else if (location.host == 'blog.csdn.net') { url = add + csdn + location.pathname.split('/')[1] + '/rss/list'; } else if (location.host == 'space.bilibili.com') { url = add + bilibili_user + location.pathname.split('/')[1]; } else if (location.host == 'web.okjike.com') { var path = location.pathname.split('/'); if (path[1] == 'topic') { if (path[3] == 'official') { url = add + jike + path[2]; } else if (path[3] == 'user') { url = add + jike_square + path[2]; } } else if (path[1] == 'user') { url = add + jike_user + path[2]; } else { alert('请在即刻用户页或主题页使用'); return; } } var b = window.screenLeft != undefined ? window.screenLeft : screen.left; var c = window.screenTop != undefined ? window.screenTop : screen.top; var width = window.innerWidth ? window.innerWidth : document.documentElement.clientWidth ? document.documentElement.clientWidth : screen.width; var height = window.innerHeight ? window.innerHeight : document.documentElement.clientHeight ? document.documentElement.clientHeight : screen.height; var d = ((width / 2) - (w / 2)) + b; var e = ((height / 2) - (h / 2)) + c; var f = window.open( url, new Date().getTime(), 'width=' + w + ', height=' + h + ', top=' + e + ', left=' + d + 'location=yes,resizable=yes,status=no,scrollbars=no,personalbar=no,toolbar=no,menubar=no'); if (window.focus) { f.focus() } })() } else if (location.host == 'space.bilibili.com') { url = add + bilibili_user + location.pathname.split('/')[1]; } else if (location.host == 'web.okjike.com') { -
ttttmr created this gist
Jun 15, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,64 @@ javascript: (function () { var w = 640; var h = 400; var add = 'https://www.inoreader.com/?add_feed='; var cnblog = 'https://www.cnblogs.com/'; var csdn = 'https://blog.csdn.net/'; var jianshu_user_1 = 'http://jianshu.milkythinking.com/feeds/users/'; var jianshu_user_2 = 'https://rsshub.app/jianshu/user/'; var zhihu_user = 'https://rss.lilydjwg.me/zhihu/'; var zhihu_zhanlan = 'https://rss.lilydjwg.me/zhihuzhuanlan/'; var bilibili_user = 'https://rss.prprpr.me/bilibili/user/video/'; var jike = 'https://rsshub.app/jike/topic/'; var jike_user = 'https://rsshub.app/jike/user/'; var url = 'https://www.inoreader.com/bookmarklet/subscribe/' + encodeURIComponent(location.href); if (location.host == 'www.cnblogs.com') { url = add + cnblog + location.pathname.split('/')[1] + '/rss'; } else if (location.host == 'www.jianshu.com') { if (location.pathname.split('/')[1] == 'u') { url = add + jianshu_user_2 + location.pathname.split('/')[2]; } else { alert('请在简书用户页面使用'); return; } } else if (location.host == 'www.zhihu.com') { if (location.pathname.split('/')[1] == 'people' || location.pathname.split('/')[1] == 'org') { url = add + zhihu_user + location.pathname.split('/')[2]; } else { alert('请在知乎用户页面使用'); return; } } else if (location.host == 'zhuanlan.zhihu.com') { if (location.pathname.split('/')[1] == 'p') { alert('请在专栏页使用'); return; } else { url = add + zhihu_zhanlan + location.pathname.split('/')[1]; } } else if (location.host == 'blog.csdn.net') { url = add + csdn + location.pathname.split('/')[1] + '/rss/list'; } else if (location.host == 'space.bilibili.com') { url = add + bilibili_user + location.pathname.split('/')[1]; } else if (location.host == 'web.okjike.com') { var path = location.pathname.split('/')[1]; if (path == 'topic') { url = add + jike + location.pathname.split('/')[2]; } else if (path == 'user') { url = add + jike_user + location.pathname.split('/')[2]; } else { alert('请在即刻用户页或主题页使用'); return; } } var b = window.screenLeft != undefined ? window.screenLeft : screen.left; var c = window.screenTop != undefined ? window.screenTop : screen.top; var width = window.innerWidth ? window.innerWidth : document.documentElement.clientWidth ? document.documentElement.clientWidth : screen.width; var height = window.innerHeight ? window.innerHeight : document.documentElement.clientHeight ? document.documentElement.clientHeight : screen.height; var d = ((width / 2) - (w / 2)) + b; var e = ((height / 2) - (h / 2)) + c; var f = window.open(url, new Date().getTime(), 'width=' + w + ', height=' + h + ', top=' + e + ', left=' + d + 'location=yes,resizable=yes,status=no,scrollbars=no,personalbar=no,toolbar=no,menubar=no'); if (window.focus) { f.focus() } })()