Skip to content

Instantly share code, notes, and snippets.

@azazel75
Created May 2, 2016 17:38
Show Gist options
  • Save azazel75/5111f67d90b7f0058582377df4a8981f to your computer and use it in GitHub Desktop.
Save azazel75/5111f67d90b7f0058582377df4a8981f to your computer and use it in GitHub Desktop.
Lasersaur Misumi inventory lookup for build steps
// ==UserScript==
// @name Lasersaur Misumi inventory lookup for build steps
// @namespace laserlab
// @include http://www.lasersaur.com/manual/build/step*
// @version 1
// @grant none
// ==/UserScript==
(function() {
'use strict';
var order = {
"SFAJ12-26-F24-P6-T6": {
"order_row": "32",
"order_desc": "LINEAR SHAFT"
},
"HFSB5-2040-860": {
"order_row": "81",
"order_desc": "ALUMINUM FRAME"
},
"PACK-SPWFN5": {
"order_row": "107",
"order_desc": "WASHERS FOR LONG HOLE"
},
"PACK-SPWFN4": {
"order_row": "106",
"order_desc": "WASHERS & NUTS"
},
"HFS5-2040-120": {
"order_row": "65",
"order_desc": "ALUMINUM FRAME"
},
"SUSLB5-25": {
"order_row": "46",
"order_desc": "BOLTS"
},
"CB3-25": {
"order_row": "38",
"order_desc": "SOCKET HEAD CAP SCREWS"
},
"FWS-D19-V15.0-T1.0": {
"order_row": "111",
"order_desc": "WASHERS"
},
"CB4-16": {
"order_row": "40",
"order_desc": "SOCKET HEAD CAP SCREWS"
},
"HFS5-4040-120": {
"order_row": "86",
"order_desc": "ALUMINUM FRAME"
},
"HFSB5-2040-750": {
"order_row": "74",
"order_desc": "ALUMINUM FRAME"
},
"MCSSC20-6-6": {
"order_row": "52",
"order_desc": "COUPLINGS"
},
"HFS5-4040-1620": {
"order_row": "89",
"order_desc": "ALUMINUM FRAME"
},
"HFS5-2040-320": {
"order_row": "72",
"order_desc": "ALUMINUM FRAME"
},
"MHPKS101-19-20-S": {
"order_row": "10",
"order_desc": "CABLE CARRIER"
},
"HFS5-4040-360": {
"order_row": "91",
"order_desc": "ALUMINUM FRAME"
},
"B626ZZ": {
"order_row": "8",
"order_desc": "BALL BEARING"
},
"PAAL-1166-847-2": {
"order_row": "15",
"order_desc": "ALUMINUM PANELS"
},
"SFAJ12-620-F18-P6-T8": {
"order_row": "34",
"order_desc": "LINEAR SHAFT"
},
"HFLBS5-1410": {
"order_row": "1",
"order_desc": "ALUMINUM FRAME"
},
"PACK-UNUT5": {
"order_row": "23",
"order_desc": "U-NUTS"
},
"HFS5-4040-190": {
"order_row": "90",
"order_desc": "ALUMINUM FRAME"
},
"UNUTZ4": {
"order_row": "22",
"order_desc": "WASHERS & NUTS"
},
"SFB5-12": {
"order_row": "49",
"order_desc": "BOLTS"
},
"HBLSD5": {
"order_row": "5",
"order_desc": "ALUMINUM FRAME BRACKETS&JOINTS"
},
"HFS5-2040-1130": {
"order_row": "64",
"order_desc": "ALUMINUM FRAME"
},
"HBLFSNB5": {
"order_row": "3",
"order_desc": "ALUMINUM FRAME BRACKETS&JOINTS"
},
"HFS5-2040-80": {
"order_row": "76",
"order_desc": "ALUMINUM FRAME"
},
"GPA20GT3090-A-P6": {
"order_row": "59",
"order_desc": "HIGH TORQUE TIMING PULLYE"
},
"CBSS5-16": {
"order_row": "50",
"order_desc": "EXTRA LOW HEAD CAP SCREWS"
},
"HFS5-4040-100": {
"order_row": "84",
"order_desc": "ALUMINUM FRAME"
},
"GPA48GT3090-A-P12": {
"order_row": "56",
"order_desc": "HIGH TORQUE TIMING PULLYE"
},
"SFAJ12-40-F16-P6-T16": {
"order_row": "33",
"order_desc": "LINEAR SHAFT"
},
"HFPAL-3-917-356": {
"order_row": "20",
"order_desc": "COVER PLATES"
},
"PWF5": {
"order_row": "105",
"order_desc": "MISCELLANEOUS"
},
"PWF4": {
"order_row": "104",
"order_desc": "MISCELLANEOUS"
},
"HFSB5-2040-1260": {
"order_row": "67",
"order_desc": "ALUMINUM FRAME"
},
"B635ZZ": {
"order_row": "7",
"order_desc": "BEARINGS"
},
"HFS5-4040-1130": {
"order_row": "85",
"order_desc": "ALUMINUM FRAME"
},
"HHPSN5": {
"order_row": "13",
"order_desc": "DOOR PARTS"
},
"HFS5-2080-70-LTP": {
"order_row": "83",
"order_desc": "ALUMINUM FRAME"
},
"PUT6-10-CB": {
"order_row": "96",
"order_desc": "POLYURETHANE TUBING"
},
"HFSB5-2040-858": {
"order_row": "79",
"order_desc": "ALUMINUM FRAME"
},
"HFPAL-3-1166-356": {
"order_row": "14",
"order_desc": "COVER PLATES"
},
"HFS5-2040-142-Z5-YA66-RTP-LCT45": {
"order_row": "66",
"order_desc": "ALUMINUM FRAME"
},
"HFS5-2020-57-LAT45": {
"order_row": "61",
"order_desc": "ALUMINUM FRAME"
},
"SFB5-8": {
"order_row": "48",
"order_desc": "BOLTS"
},
"SFAJ12-40-F16-P6-T24": {
"order_row": "35",
"order_desc": "LINEAR SHAFT"
},
"SHPTSD5": {
"order_row": "25",
"order_desc": "ALUMINUM FRAME BRACKETS&JOINTS"
},
"HFS5-2040-1620": {
"order_row": "70",
"order_desc": "ALUMINUM FRAME"
},
"HFS5-2040-830": {
"order_row": "78",
"order_desc": "ALUMINUM FRAME"
},
"B605ZZ": {
"order_row": "9",
"order_desc": "BALL BEARING"
},
"HFPAL-3-847-268": {
"order_row": "18",
"order_desc": "COVER PLATES"
},
"GBN1953GT-90": {
"order_row": "54",
"order_desc": "BELT"
},
"AHOS9-10": {
"order_row": "103",
"order_desc": "AIR HOSES"
},
"HFS5-4080-1620": {
"order_row": "94",
"order_desc": "ALUMINUM FRAME"
},
"HFS5-2020-1564": {
"order_row": "60",
"order_desc": "ALUMINUM FRAME"
},
"HFS5-4040-860": {
"order_row": "92",
"order_desc": "ALUMINUM FRAME"
},
"LBNR3": {
"order_row": "21",
"order_desc": "BEARING NUT"
},
"GPA22GT3090-A-P6.35": {
"order_row": "57",
"order_desc": "HIGH TORQUE TIMING PULLYE"
},
"MSBUL6": {
"order_row": "98",
"order_desc": "ONE-TOUCH FITTINGS"
},
"HFS5-2040-96-Z5-YA46-YB76": {
"order_row": "82",
"order_desc": "ALUMINUM FRAME"
},
"HFS5-2040-63-Z5-YA10": {
"order_row": "73",
"order_desc": "ALUMINUM FRAME"
},
"PCTBA-847-143-3": {
"order_row": "30",
"order_desc": "RESIN PLATES"
},
"HNTPZ5-5": {
"order_row": "102",
"order_desc": "NUTS FOR ALUMINUM FRAMES"
},
"HFS5-4040-1564": {
"order_row": "88",
"order_desc": "ALUMINUM FRAME"
},
"HFS5-2040-69-LAT45": {
"order_row": "77",
"order_desc": "ALUMINUM FRAME"
},
"Cod. comp.": {
"order_row": "\ufeff\"N.\"",
"order_desc": "Nome prodotto"
},
"UPCN19-B-36": {
"order_row": "26",
"order_desc": "PULLS"
},
"GPA18GT3090-A-P5": {
"order_row": "55",
"order_desc": "HIGH TORQUE TIMING PULLYE"
},
"HBLFSD5": {
"order_row": "4",
"order_desc": "ALUMINUM FRAME BRACKETS&JOINTS"
},
"BCB5-6": {
"order_row": "47",
"order_desc": "BOLT"
},
"HFS5-4080-940": {
"order_row": "95",
"order_desc": "ALUMINUM FRAME"
},
"WASSH12-6-2": {
"order_row": "108",
"order_desc": "WASHER"
},
"HSCP3H-B-12": {
"order_row": "24",
"order_desc": "ACCESSORIES"
},
"HFPAL-3-847-213": {
"order_row": "17",
"order_desc": "COVER PLATES"
},
"CB3-16": {
"order_row": "37",
"order_desc": "SOCKET HEAD CAP SCREWS"
},
"HNTE5-3": {
"order_row": "99",
"order_desc": "NUTS FOR ALUMINUM FRAME"
},
"HNTE5-4": {
"order_row": "100",
"order_desc": "NUTS FOR ALUMINUM FRAME"
},
"HNTE5-5": {
"order_row": "101",
"order_desc": "NUTS FOR ALUMINUM FRAME"
},
"CB3-10": {
"order_row": "36",
"order_desc": "SOCKET HEAD CAP SCREWS"
},
"HBLFSDW5": {
"order_row": "6",
"order_desc": "ALUMINUM FRAME BRACKETS&JOINTS"
},
"PCTBA-600-110-3": {
"order_row": "28",
"order_desc": "RESIN PLATES"
},
"HFS5-2040-55-TPW": {
"order_row": "75",
"order_desc": "ALUMINUM FRAME"
},
"MSELL6-M5": {
"order_row": "97",
"order_desc": "ONE-TOUCH FITTINGS"
},
"HFS5-4080-100": {
"order_row": "93",
"order_desc": "ALUMINUM FRAME"
},
"BCB3-6": {
"order_row": "39",
"order_desc": "BOLTS"
},
"GPA60GT3090-A-P12-FC59": {
"order_row": "58",
"order_desc": "HIGH TORQUE TIMING PULLYE"
},
"HFPAL-3-247-216": {
"order_row": "16",
"order_desc": "COVER PLATES"
},
"PCTBA-809-60-3": {
"order_row": "29",
"order_desc": "RESIN PLATES"
},
"HFS5-2040-100": {
"order_row": "63",
"order_desc": "ALUMINUM FRAME"
},
"PCTBA-600-130-3": {
"order_row": "27",
"order_desc": "RESIN PLATES"
},
"HFS5-2040-148-Z5-YA20-YB102": {
"order_row": "68",
"order_desc": "ALUMINUM FRAME"
},
"FGSS22150B": {
"order_row": "12",
"order_desc": "GAS SPRING (NOT D.G.)"
},
"HFS5-2040-1564": {
"order_row": "69",
"order_desc": "ALUMINUM FRAME"
},
"CB5-20": {
"order_row": "45",
"order_desc": "SOCKET HEAD CAP SCREWS"
},
"HFPAL-3-847-356": {
"order_row": "19",
"order_desc": "COVER PLATES"
},
"HFS5-2040-860": {
"order_row": "80",
"order_desc": "ALUMINUM FRAME"
},
"GTS5": {
"order_row": "110",
"order_desc": "PIPING CLANP"
},
"HFS5-2040-190": {
"order_row": "71",
"order_desc": "ALUMINUM FRAME"
},
"GTS3": {
"order_row": "109",
"order_desc": "PIPING CLANP"
},
"CB5-8": {
"order_row": "41",
"order_desc": "SOCKET HEAD CAP SCREWS"
},
"PCTBA-892-847-3": {
"order_row": "31",
"order_desc": "RESIN PLATES"
},
"HBLFSN5": {
"order_row": "2",
"order_desc": "BRACKETS&JOINTS ALUMINUM FRAME"
},
"HFS5-4040-1418": {
"order_row": "87",
"order_desc": "ALUMINUM FRAME"
},
"HFS5-2020-80": {
"order_row": "62",
"order_desc": "ALUMINUM FRAME"
},
"CB5-10": {
"order_row": "42",
"order_desc": "SOCKET HEAD CAP SCREWS"
},
"CB5-12": {
"order_row": "43",
"order_desc": "SOCKET HEAD CAP SCREWS"
},
"CB5-16": {
"order_row": "44",
"order_desc": "SOCKET HEAD CAP SCREWS"
},
"CBSST5-30": {
"order_row": "51",
"order_desc": "LOW HEAD CAP SCREW"
},
"MHPUS102-19-23-S": {
"order_row": "11",
"order_desc": "CABLE CARRIER"
},
"GBN3273GT-90": {
"order_row": "53",
"order_desc": "BELT"
}
};
var codes = document.querySelectorAll("table.table-striped td:nth-child(3)");
var i, cod, row, code_cell;
for (i = 0; i < codes.length; i++) {
code_cell = codes[i];
cod = code_cell.innerText;
row = order[cod];
if (row) {
code_cell.innerHTML = cod + ' <h3>inventory: ' + row.order_row + '</h3>';
}
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment