{"id":16832682,"url":"https://github.com/zswang/website-detection","last_synced_at":"2025-03-18T00:49:55.343Z","repository":{"id":145189601,"uuid":"93698884","full_name":"zswang/website-detection","owner":"zswang","description":null,"archived":false,"fork":false,"pushed_at":"2018-10-18T11:30:10.000Z","size":198,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-24T09:09:37.218Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zswang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-06-08T02:23:49.000Z","updated_at":"2018-10-18T11:30:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"86fa3d1a-a53d-4378-b3e4-f4df42451493","html_url":"https://github.com/zswang/website-detection","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zswang%2Fwebsite-detection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zswang%2Fwebsite-detection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zswang%2Fwebsite-detection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zswang%2Fwebsite-detection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zswang","download_url":"https://codeload.github.com/zswang/website-detection/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244135897,"owners_count":20403797,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T11:50:01.795Z","updated_at":"2025-03-18T00:49:55.311Z","avatar_url":"https://github.com/zswang.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"website-detection\n--------\nThe detection website introduces third party components\n\n## Usage\n\n### Injection\n\n```js\njavascript:with(document)0[body.appendChild(createElement('script')).src='//raw.githubusercontent.com/zswang/website-detection/master/injection/injection.js?'+Math.random()]\n```\n\n### Inline\n\n```js\njavascript:void function(){var e=document.querySelector(\"#website_detection\");if(e)return e.style.display=\"\",void(e.onshow\u0026\u0026e.onshow());e=document.createElement(\"div\"),e.id=\"website_detection\",e.innerHTML='    \u003cstyle\u003e#website_detection{position:fixed;width:440px;border:gray solid 1px;border-radius:3px;background:#fff;left:100px;top:30px;z-index:2012122324}#website_detection a,#website_detection button,#website_detection h4,#website_detection input,#website_detection label,#website_detection li,#website_detection p,#website_detection select,#website_detection textarea,#website_detection ul{margin:0;padding:0;box-sizing:border-box;font:18px/1.125 Arial,Helvetica,sans-serif}#website_detection h4{padding:4px 0}#website_detection li,#website_detection ul{list-style:none;padding:0;margin:0}#website_detection .panel_header{height:24px;line-height:24px;position:relative;background:#24292e;color:#fff;padding:2px 5px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:move}#website_detection .panel_header .image_logo{float:left;cursor:pointer;color:#fff;text-decoration:none}#website_detection .panel_header .label_title{float:left;margin-left:5px}#website_detection .panel_header .btn_close{float:right;cursor:pointer}#website_detection .panel_content{background:#fff;padding:5px}#website_detection .panel_content .features li{float:left;width:200px;margin:6px;height:150px;text-align:center;border:gray solid 1px}#website_detection .panel_content .features li img{width:170px;height:70px}#website_detection .clear{clear:both}\u003c/style\u003e\\n    \u003cdiv class=\"panel_header\"\u003e\\n      \u003ca href=\"https://weibo.com/zswang\" target=\"_blank\" class=\"image_logo\"\u003ez\u003c/a\u003e\\n      \u003cspan class=\"label_title\"\u003eWebsite Detection\u003c/span\u003e\\n      \u003cspan class=\"btn_close\"\u003e×\u003c/span\u003e\\n    \u003c/div\u003e\\n    \u003cdiv class=\"panel_content\"\u003e\\n      \u003cul class=\"features\"\u003e\u003c/ul\u003e\\n    \u003c/div\u003e',document.body.appendChild(e);var t=[{pattern:/www\\.google-analytics\\.com\\/analytics\\.js|ssl\\.google-analytics\\.com\\/ga\\.js/,name:\"google-analytics\",title:\"谷歌分析\",global:\"GoogleAnalyticsObject\",home:\"https://analytics.google.com/\"},{pattern:/www\\.googletagmanager\\.com\\/gtm\\.js/,name:\"google-tagmanager\",title:\"tag manager\",global:\"google_tag_manager\",home:\"https://www.google.com/analytics/tag-manager/\"},{pattern:/hm\\.baidu\\.com\\/hm\\.js|hm\\.baidu\\.com\\/h\\.js|datax\\.baidu\\.com\\/x\\.js/,name:\"baidutongji\",title:\"百度统计\",global:\"_hmt\",home:\"http://tongji.baidu.com/\"},{pattern:/www\\.sensorsdata\\.cn\\/sdk\\/sensorsdata\\.www\\.js|sensorsdata\\.min\\.js/,name:\"sensorsdata\",title:\"神策数据\",global:\"sensorsDataAnalytic201505\",home:\"http://sensorsdata.cn/\"},{pattern:/js\\.ptengine\\.cn\\/\\w+\\.js/,name:\"ptengine\",title:\"铂金分析\",global:\"badgeSign\",home:\"http://www.ptengine.cn/\"},{pattern:/dn-growing\\.qbox\\.me\\/vds-gate\\.js|dn-growing\\.qbox\\.me\\/vds\\.js/,name:\"growingio\",title:\"GrowingIO\",global:\"grcs\",home:\"https://www.growingio.com/\"},{pattern:/zhugeio\\.com\\/common\\/js\\/track[\\w.]+\\.js/,name:\"zhugeio\",title:\"诸葛io\",global:\"zhuge\",home:\"https://zhugeio.com/\"},{pattern:/w\\.cnzz\\.com\\/c\\.php\\?id=\\w+/,name:\"cnzz\",title:\"CNZZ/友盟\",global:\"cnzz\",home:\"http://www.umeng.com/\"},{pattern:/static\\.t\\.agrantsem\\.com\\/ag_track[\\w-.]+\\.js/,name:\"agrantsem\",title:\"AnG\",global:\"_agtjs\",home:\"http://www.agrantsem.com/\"},{pattern:/tajs\\.qq\\.com\\/stats\\?sId=\\w+/,name:\"tencent-analytics\",title:\"腾讯分析\",global:\"taClick\",home:\"http://v2.ta.qq.com/\"},{pattern:/b\\.scorecardresearch\\.com\\/beacon\\.js/,name:\"scorecard-research\",title:\"ScorecardResearch\",global:\"udm_\",home:\"http://www.scorecardresearch.com/\"}],n=[];window.performance\u0026\u0026performance.getEntries\u0026\u0026performance.getEntries().forEach(function(e){t.forEach(function(t){t.pattern.test(e.name)\u0026\u0026n.indexOf(t)\u003c0\u0026\u0026n.push(t)})}),t.forEach(function(e){e.global in window\u0026\u0026n.indexOf(e)\u003c0\u0026\u0026n.push(e)});var o=e.querySelector(\".panel_header\");if(o){var a,i;o.addEventListener(\"mousedown\",function(t){function n(t){e.style.left=Math.max(0,Math.min(document.documentElement.clientWidth-e.clientWidth,a[0]+(t.screenX-i[0])))+\"px\",e.style.top=Math.max(0,Math.min(document.documentElement.clientHeight-e.clientHeight,a[1]+(t.screenY-i[1])))+\"px\"}function o(e){document.removeEventListener(\"mousemove\",n),document.removeEventListener(\"mouseup\",o)}var s=getComputedStyle(e,!0);a=[parseFloat(s.left),parseFloat(s.top)],i=[t.screenX,t.screenY],document.addEventListener(\"mousemove\",n),document.addEventListener(\"mouseup\",o)})}var s=e.querySelector(\".panel_header .btn_close\");s\u0026\u0026s.addEventListener(\"click\",function(){e.style.display=\"none\"});var c=e.querySelector(\".features\"),r=\"\";n.forEach(function(e){r+=\"\\n  \u003cli\u003e\\n    \u003ch4\u003e\"+e.title+'\u003c/h4\u003e\\n    \u003ca href=\"'+e.home+'\" target=\"_blank\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/zswang/website-detection/master/public/img/'+e.name+'.png\" alt=\"'+e.name+'\"\u003e\u003c/a\u003e\\n  \u003c/li\u003e'}),c.innerHTML=r}();\n```\n\n## Install\n\n```shell\nnpm install\n```\n\n## Environment dependence\n\n### phantomjs\n\n* [phantomjs](https://phantomjs.org)\n\n```shell\nmkdir ~/software\ncd ~/software\nwget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2 -O phantomjs-2.1.1-linux-x86_64.tar.bz2\ntar -xvf phantomjs-2.1.1-linux-x86_64.tar.bz2\nmv phantomjs-2.1.1-linux-x86_64 /usr/local/phantomjs\nln -s /usr/local/phantomjs/bin/phantomjs /usr/bin/phantomjs\nphantomjs -v\n```\n\n### phantomjs of centos\n\n```shell\nyum install libXext libXrender fontconfig libfontconfig.so.1\n```\n\n## Start\n\n```shell\npm2 start pm2.json\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzswang%2Fwebsite-detection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzswang%2Fwebsite-detection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzswang%2Fwebsite-detection/lists"}