NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name Admin Extension for JobSight // @license MIT // @updateURL https://openuserjs.org/meta/username/Admin_Extension.meta.js // @include https://app.levelset.com/admin/orders/view_order/* // @require http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js // @grant GM_addStyle // ==/UserScript== var companyNum = $( "#wdgt_user_info a:first").attr("href").replace(/[^0-9]/gi, ''); var isAffiliate = $( "#wdgt_user_info .badge-label:last" ).text(); var overrides = { "7083": {"instruction": ["Users GC preferences have changed. If unable to locate any project info, send missing GC, and missing PO RNs. For monthly notices, if new informaton is found for missing info alerts have been sent, send RN if necessary. If no new info is found, push order to ready for batch. For monthly notices, if Federl Project Type notification is sent and user accepts, cancel the order.CANCEL orders in PA and IA if there isn't an entry and add bond number from projects page. Cell tower: only operator listed as the ownership,no parcel owner."] },"38494": { "instruction": ["If surety is required, send RN for surety if you can't find one."] },"18053": { "instruction": ["Notices: If the project type changes and the document is voluntary or not required, cancel the order. All Orders: If the project type changes and new extra fields are required for amounts, use the amount info from the previous order."] },"6413": { "instruction": ["If user lists the owner as FPL, Florida Power & Light, etc. send the notice out as-is"] }, "79158": {"instruction": ["Mail to the subcontractor! Do not email if they accidentally clicked that."] }, "18755": {"instruction": ["For liens or bond claims, please search the secretary of state for the property owner, and add the registered agent for the owners as additional property owners. For NOC states, you can add and solve notification for surety, lender and OD without sending a RN."] }, "53956": { "instruction": ["Double check hiring party information name and address are correct, the information comes over in different fields."] }, "4810": { "instruction": ["If a claim is ordered, send a desk to Barry (barrydambrowski@emser.com) to confirm they want to proceed. Do NOT send conflict or non-match notifications for project address if it is only for a suite number, leave as-is."] }, "24098": { "instruction": ["Keep lot numbers in the project address. If you have to send and alert for conflicting project address make sure to keep the lot numbers as well."] }, "16199": { "instruction": ["If project is new development leave as residential if the order was submitted as residential. Hub does not want to be contacted with the commercial suggestion. If the project is Tribal Land, proceed as is. No need to reach out to the user. SURETY MIGHT BE UNASSOCIATED, CHECK BEFORE SENDING."] }, "3253": {"instruction": ["If NOC found, added and solve the RN for the owner designee and send copy of NOF."] }, "8493": { "instruction": ["Do not reach out to Richard Herman Inc when they are on Hagle's projects."] }, "12814": { "instruction": ["Claims: If a claim is ordered, contact their end user to see if we can proceed."] }, "7186": { "instruction": ["If General Contractor provided is only name with no mailing address, send a contact conflict alert with the address we find. "] }, "16200": { "instruction": ["Monthly Notices: If project is a new development, consider it commercial until it is sold by the developer. "] }, "22533": { "instruction": ["When sending an alert for Legal Property Description attach a PDF of the property report. "] }, "55147": { "instruction": ["Project Research: make note that we confirmed DTI or updated from the assessor. "] }, "60708": { "instruction": ["Hiring party is always the GC, but will sometimes be the sub. Keep an eye out for searching for the NOCs. Send RN if you find different GC."] }, "29162": { "instruction": ["Notices: If you're not able to find research on the county assessor, cancel the order. Confirm all DataTree hits on the assessor. "]}, "13366": { "instruction": ["Do NOT send any RNs for missing address. Please reach out to other researchers and as a last resort Amy if you are unable to find anything. Please refer to Amy's instructions on how to research oil and gas jobs before pinging her or others. "]}, "13427": {"instruction": ["Don't reach out for more information. Don't add the property address address as is."]}, "31159": {"instruction": ["If lien is ordered by any user besides Melissa, then please get her permission to proceed."]}, "24022": { "instruction": ["If Gary Construction is GC use Lockheed Martin Address: 1011 Lockheed Way, Palmdale CA. If Gary Little is NOT the GC use Lockheed Martin: 1 Lockheed Blvd, Fort Worth TX. Don't want EC Wheeler listed on anything pertaining to Lockheed Marting jobs."]}, "32996": { "instruction": ["If monthly notice is federal, change to a generic preliminary notice and send notice. ALSO, for monthly notices, if the project address matches the subcontractor's address, research as normal and send out."] }, "28866": {"instruction": ["Do not send missing GC RN if you can not find a GC."] }, "18768": { "instruction": ["If NOC is found, send an alert for Owner Designee, do NOT just add the contact. User is concerned about postage. Please attach NOC for reference on RNs"]}, "29179": {"instruction": ["Do not send last furnishing date if it is missing."] }, "20587": { "instruction": ["On VMLA orders, cancel the order if there is no Mechanics Lien Agent, if the project is commercial, or if it's confirmed to be an addition or renovation and not new construction. On SCR, if there is no filing to file on, do NOT send out in house, instead cancel the order."] }, "18724": { "instruction": ["When an order appears to be on Tribal Land, do NOT send tribal desk. Send out the notices as the submitted project type and do not contact user."] }, "34840": { "instruction": ["File on LiensNC. 3 Attempts to obtain info before sending RNs"] }, "21194": { "instruction": ["Can update hiring role. 3 Attempts to obtain info before sending RNs"] }, "33972": { "instruction": ["Can update hiring role. 3 Attempts to obtain info before sending RNs"] }, "7026": { "instruction": ["Can update hiring role. 3 Attempts to obtain info before sending RNs"] }, "38704": { "instruction": ["Can update hiring role. 3 Attempts to obtain info before sending RNs"] }, "18756": { "instruction": ["Can update hiring role. 3 Attempts to obtain info before sending RNs"] }, "33757": { "instruction": ["Can update hiring role. 3 Attempts to obtain info before sending RNs"] }, "27367": { "instruction": ["Can update hiring role. Always add legal when applicable. RN after 1st touch when deadline is < 3 days. RN after 1st touch for rushed orders. Try to confirm customer's role. Make sure contacts and PA are in lower case."] },"22346": { "instruction": ["If search for GC comes back empty, send missing contact RN for GC. IF OIL/GAS PROJECT, CHANGE PROJECT TYPE TO OTHER, CANCEL ORDER. If unable to locate any project info, send missing address, missing GC, and missing PO."] },"15083": { "instruction": ["Please cancel any orders with expired/unresolved alerts and/or where we are missing required prelien information in TERESA'S REGION. Continue to process/send such orders in CYNDE'S REGION. We can still email them to gather more information if needed, as per regular procedure. ONLY ADD INFO GATHERED FROM CALLS, NOT SIMILAR PROJECTS IN THE UDG"] },"42888": { "instruction": ["Send missing GC RN if you're unable to find them."] },"34840": { "instruction": ["Please remember to send the FHMI TE if we cannot find a filing on LiensNC. Can update hiring role. 3 Attempts to obtain info before sending RNs."] },"67150": { "instruction": [" Send as little as notifications as possible. Add surety, lender or OD if find the NOC and solve RNs. Can update hiring party to GC if find they were hired by the GC."] },"39793": {"instruction": ["Update hiring party if you have confirmed customer is the GC. You can clean up addresses, like phone numbers, w/o sending RN. If Federal, change to generic prelim and send notice."]},"59706": {"instruction": ["This user wants all of their documents sent via CERTIFIED MAIL.If we cannot find the NOC, do not send RNs for Owner Designee. You can send it out w/o it."]}, "6346": {"instruction": ["If attachment for liens are LIEN INTAKE forms or other internal forms please reach out to end user."]}, "46917": { "instruction": ["Do not send RN's for estimated total contract amount."] }, "18217": { "instruction": ["USE THE WHITE-LABEL TEMPLATE IN THE FORMS."] }}; var instList = ''; if (overrides[companyNum]) { var list = $.each(overrides[companyNum].instruction, function(i, inst) { var listItem = '<li>' + inst + '</li>'; instList += listItem; });} else { instList = "<li>No special instructions</li>"; } if (isAffiliate == "Affiliate") { instList += "<li>AFFILIATE ORDER</li>"; } var myHTML = '<div id="gmRightSideBar"><ul>' + instList + '</ul>' + '</div>'; $("body").append (myHTML); GM_addStyle ( " \ #gmRightSideBar { \ position: fixed; \ top: 0; \ right: 0; \ margin: 1ex; \ padding: 1em; \ background: orange; \ width: 200px; \ z-index: 6666; \ opacity: 0.9; \ } \ #gmRightSideBar p { \ font-size: 80%; \ } \ #gmRightSideBar ul { \ margin: 0ex; \ } \ #gmRightSideBar a { \ color: blue; \ } \ " );