Created
November 30, 2018 16:26
-
-
Save ebenolson/75fe6435b123a4d29aaf42c864d36449 to your computer and use it in GitHub Desktop.
Export MPN from Mouser order page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function(){ | |
function copyStringToClipboard (str) { | |
var el = document.createElement('textarea'); | |
el.value = str; | |
el.setAttribute('readonly', ''); | |
el.style = {position: 'absolute', left: '-9999px'}; | |
document.body.appendChild(el); | |
el.select(); | |
document.execCommand('copy'); | |
document.body.removeChild(el); | |
};a = $("a[id*='ManufacturerPartNumber']").map(function(index) { return $(this).text()}).toArray();copyStringToClipboard(a.join('\n'));})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment