Skip to content

Instantly share code, notes, and snippets.

@mywizz
Created August 31, 2013 07:33
Show Gist options
  • Save mywizz/6396743 to your computer and use it in GitHub Desktop.
Save mywizz/6396743 to your computer and use it in GitHub Desktop.
사파리에서 현재 열려있는 클량 게시판이나 게시물을 ClienKit에서 보는 (뻘)북마클릿
javascript:void(function(w){var%20u=w.document.location;var%20x=/bo_table=([_a-z]+)/;var%20y=/wr_id=([0-9]+)/;var%20c,a=[];if((m=x.exec(u))){c='list';a.push('board='+m[1]);}if((n=y.exec(u))){c='read';a.push('id='+n[1]);}if(c){w.location.href='clienkit://x-callback-url/'+c+'?'+a.join('&');}})(window)
@mywizz
Copy link
Author

mywizz commented Sep 3, 2013

javascript:void(function(w){var u=w.document.location;var x=/bo_table=([_a-z]+)/;var y=/wr_id=([0-9]+)/;var c,a=[];if((m=x.exec(u))){c='list';a.push('board='+m[1]);}if((n=y.exec(u))){c='read';a.push('id='+n[1]);}if(c){w.location.href='clienkit://x-callback-url/'+c+'?'+a.join('&');}})(window)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment