Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save lamngockhuong/d8074a57a32a97ce0210c2a7ad8420ff to your computer and use it in GitHub Desktop.
Save lamngockhuong/d8074a57a32a97ce0210c2a7ad8420ff to your computer and use it in GitHub Desktop.
[Code tự động chèn nguồn trang khi copy bài trên web] #html #js
<script type="text/javascript">
if(document.location.protocol=='http:'){
var Tynt=Tynt||[];
Tynt.push('d5Y36e5Q8r4l_Yacwqm_6l');
Tynt.i={"ap":"Nguồn :"};
(function(){
var s=document.createElement('script');
s.async="async";
s.type="text/javascript";
s.src='http://tcr.tynt.com/ti.js';
var h=document.getElementsByTagName('script')[0];
h.parentNode.insertBefore(s,h);})();
}
</script>
Nguồn: http://blog.ngockhuong.com/2015/02/code-tu-dong-chen-nguon-trang-khi-copy.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment