Skip to content

Instantly share code, notes, and snippets.

@dc-nikolaev
Created October 3, 2013 06:50
Show Gist options
  • Save dc-nikolaev/6806044 to your computer and use it in GitHub Desktop.
Save dc-nikolaev/6806044 to your computer and use it in GitHub Desktop.
On click from another guide in Steam he open in new page
jQuery('.workshopItemCollectionContainer').each(function() {
var link = jQuery(this).find('div[class=workshopItemCollection]').attr('onclick').split('href=')[1];
var old_inner_html = jQuery(this).html();
jQuery(this).html('<a href="'+link+'" target="_blank">'+old_inner_html+'</a>');
jQuery(this).find('div[class=workshopItemCollection]').attr('onclick','');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment