Skip to content

Instantly share code, notes, and snippets.

@an9er
Created August 23, 2016 03:04
Show Gist options
  • Save an9er/15d2c014e464eaaaf6fcd258237b8511 to your computer and use it in GitHub Desktop.
Save an9er/15d2c014e464eaaaf6fcd258237b8511 to your computer and use it in GitHub Desktop.
javascript:function iprl5(){var d=document;z=d.createElement('script');b=d.body;l=d.location;ji_url=window.location.protocol+'//jiji.io/ji?url='+encodeURIComponent(l)+'&title='+d.title;console.log(l.hostname);if(l.hostname=='twitter.com'||l.hostname=='zhihu.com'||l.hostname=='quora.com'||l.hostname=='github.com'){window.open(ji_url);}else{try{if(!b)throw(0);if(!l){alert('%E8%AF%B7%E8%BE%93%E5%85%A5%E7%BD%91%E5%9D%80%EF%BC%81');return;}d.title='(%E9%9B%86%E9%9B%86ing...) '+d.title;z.setAttribute('src',ji_url);b.appendChild(z);}catch(e){alert('%E8%AF%B7%E7%AD%89%E5%BE%85%E7%BD%91%E9%A1%B5%E5%8A%A0%E8%BD%BD%E5%AE%8C%E6%AF%95%EF%BC%81');}}}iprl5();void(0)
javascript:function iprl5(){var d=document;z=d.createElement('script');b=d.body;l=d.location;ji_url=window.location.protocol+'//jiji.io/ji?url='+encodeURIComponent(l);console.log(l.hostname);if(l.hostname=='twitter.com'||l.hostname=='zhihu.com'||l.hostname=='quora.com'||l.hostname=='github.com'){window.open(ji_url);}else{try{if(!b)throw(0);if(!l){alert('%E8%AF%B7%E8%BE%93%E5%85%A5%E7%BD%91%E5%9D%80%EF%BC%81');return;}d.title='(%E9%9B%86%E9%9B%86ing...) '+d.title;z.setAttribute('src',ji_url);b.appendChild(z);}catch(e){alert('%E8%AF%B7%E7%AD%89%E5%BE%85%E7%BD%91%E9%A1%B5%E5%8A%A0%E8%BD%BD%E5%AE%8C%E6%AF%95%EF%BC%81');}}}iprl5();void(0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment