Skip to content

Instantly share code, notes, and snippets.

@yhsiang

yhsiang/gist:6283778

Created Aug 20, 2013
Embed
What would you like to do?
newshelper-extension content_script.js 新版Timeline
// 新版Timeline
if (!addedAction) {
containerNode.parent('._4q_').find('._6p-').find('._5ciy').find('._6j_').each(function(idx, shareAction){
console.log(shareAction);
$($('<a class="_5cix"></a>').html(buildActionBar({title: titleText, link: linkHref}))).insertAfter(shareAction);
addedAction = true;
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment