Skip to content

Instantly share code, notes, and snippets.

View JinnLynn's full-sized avatar

Jian Lin JinnLynn

View GitHub Profile
@JinnLynn
JinnLynn / PJ2WP-WXR.asp
Last active December 10, 2015 23:08
PJBlog2/3到Wordpress的数据迁移工具
<!--#include file="BlogCommon.asp" -->
<!--#include file="common/function.asp" -->
<!--#include file="common/ubbcode.asp" -->
<!--#include file="common/library.asp" -->
<!--#include file="common/cache.asp" -->
<!--#include file="common/checkUser.asp" -->
<!--#include file="common/XML.asp" -->
<!--#include file="class/cls_logAction.asp" -->
<!--#include file="class/cls_control.asp" -->
@JinnLynn
JinnLynn / bookmark.js
Last active December 10, 2015 23:08
在Google搜索结果中避免使用跳转,直接访问目标网址 http://jeeker.net/article/google-search-url-uncover/
javascript:(function(){function getRealUrl(l){if(l.indexOf('/url?')<0)return null;var a=document.createElement('a');a.href=l;seg=a.search.replace(/^\?/,'').split('&');for(i=0;i<seg.length;i++){if(!seg[i])continue;s=seg[i].split('=');if(s[0]=='url')return decodeURIComponent(s[1]);}return null;}var real=getRealUrl(location.href);if(real){window.location.href=real;return;};document.addEventListener('click',function(e){for(a=e.target;a;a=a.parentNode){if(a.localName!='a')continue;real=getRealUrl(a.getAttribute('href'));if(real){alert('d');a.setAttribute('href',real);a.removeAttribute('onmousedown');}break;}},false);})();