Kode [Wajib] Optimalisasi Blogger 2018 - RAGIL.info

Breaking

Home Top Ad

Post Top Ad

Rabu, 28 Februari 2018

Kode [Wajib] Optimalisasi Blogger 2018

 

Source Code untuk Menampilkan footer otomatis

  • Source code berikut merupakan footnote otomatis yang akan muncul ketika seseorang mengcopy article yang ada pada blog kita namun lupa mencantumkan sumbernya, ganti tulisan warna merah, dan copy paste di atas kode </body> ,
    perlu diingat bahwa kode berikut merupakan kode javascript, jadi harus diawali dengan <script type='text/javascript'> dan diakhiri </script> langsung saja di sedot :
function addLink(){var a=document.getElementsByTagName("body")[0];var b;b=window.getSelection();var c="
 Sumber: RAGIL.info | JIMNY-ADVENTURE-PETS-TUTORIAL.
"+document.location.href+" ";var d=b+c;var e=document.createElement("div");e.style.position="absolute";e.style.left="-99999px";a.appendChild(e);e.innerHTML=d;b.selectAllChildren(e);window.setTimeout(function(){a.removeChild(e)},0)}document.oncopy=addLink

 

Source Code untuk menonaktifkan ctrl U

  • Source code berikut merupakan kode untuk menonaktifkan Ctrl U dann redirect ke url tujuan sesuai keinginan, copy paste di atas kode </body> , perlu diingat bahwa kode berikut merupakan kode javascript, jadi harus diawali dengan <script type='text/javascript'> dan diakhiri </script> langsung saja di sedot :

//<![CDATA[
shortcut={all_shortcuts:{},add:function(a,b,c){var d={type:"keydown",propagate:!1,disable_in_input:!1,target:document,keycode:!1};if(c)for(var e in d)"undefined"==typeof c[e]&&(c[e]=d[e]);else c=d;d=c.target,"string"==typeof c.target&&(d=document.getElementById(c.target)),a=a.toLowerCase(),e=function(d){d=d||window.event;if(c.disable_in_input){var e;d.target?e=d.target:d.srcElement&&(e=d.srcElement),3==e.nodeType&&(e=e.parentNode);if("INPUT"==e.tagName||"TEXTAREA"==e.tagName)return}d.keyCode?code=d.keyCode:d.which&&(code=d.which),e=String.fromCharCode(code).toLowerCase(),188==code&&(e=","),190==code&&(e=".");var f=a.split("+"),g=0,h={"`":"~",1:"!",2:"@",3:"#",4:"$",5:"%",6:"^",7:"&",8:"*",9:"(",0:")","-":"_","=":"+",";":":","'":'"',",":"<",".":">","/":"?","\\":"|"},i={esc:27,escape:27,tab:9,space:32,"return":13,enter:13,backspace:8,scrolllock:145,scroll_lock:145,scroll:145,capslock:20,caps_lock:20,caps:20,numlock:144,num_lock:144,num:144,pause:19,"break":19,insert:45,home:36,"delete":46,end:35,pageup:33,page_up:33,pu:33,pagedown:34,page_down:34,pd:34,left:37,up:38,right:39,down:40,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123},j=!1,l=!1,m=!1,n=!1,o=!1,p=!1,q=!1,r=!1;d.ctrlKey&&(n=!0),d.shiftKey&&(l=!0),d.altKey&&(p=!0),d.metaKey&&(r=!0);for(var s=0;k=f[s],s

Tidak ada komentar:

Posting Komentar

Post Bottom Ad