Skip to content

Instantly share code, notes, and snippets.

@yhsiang
Created August 20, 2013 16:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yhsiang/6283778 to your computer and use it in GitHub Desktop.
Save yhsiang/6283778 to your computer and use it in GitHub Desktop.
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