知乎专栏内容转微信订阅号脚本 - mindpin/docs GitHub Wiki
复制前在浏览器控制台运行:
jQuery('.entry-content p').css({
'margin-top': '20px',
'margin-bottom': '20px'
})
jQuery('pre code').css({
'font-family': "Consolas, 'Liberation Mono', Courier, monospace"
})
jQuery('.highlight pre').css({
'border': '1px solid rgb(221, 221, 221)',
'padding': '5px 10px',
'border-radius': '5px',
'font-size': '14px',
'font-weight': 'bold',
'margin-bottom': '10px'
})
jQuery('code span').each(function(){
$e = jQuery(this)
$e.css('color', $e.css('color'))
})
jQuery('.entry-content a').each(function(){
$a = jQuery(this)
href = $a.attr('href').replace('https://link.zhihu.com/?target=', '')
href = href.replace('%3A', ':')
$a.text(href)
})