Skip to content

Commit

Permalink
Update wwads.js
Browse files Browse the repository at this point in the history
  • Loading branch information
tvvocold authored Mar 27, 2021
1 parent b5502c4 commit e390cd3
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions wwads.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,24 @@
//万维广告 js

(function(){
var _sr = document.createElement('script');
_sr.type = 'text/javascript';
_sr.async = true;
_sr.src = 'https://wwads.cn/code/install';
(document.getElementsByTagName('head')[0]||document.getElementsByTagName('body')[0]).appendChild(_sr);
})();

// 百度 push 提交 url

(function(){
var bp = document.createElement('script');
var curProtocol = window.location.protocol.split(':')[0];
if (curProtocol === 'https'){
bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
}
else{
bp.src = 'http://push.zhanzhang.baidu.com/push.js';
}
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(bp, s);
})();

0 comments on commit e390cd3

Please sign in to comment.