NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name Doc Control Admin Extension // @license MIT // @updateURL https://openuserjs.org/meta/nhemmerson/Doc_Control_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 = { "179542": { "instruction": ["Bespoke - Batch S4S"] }, "169299": { "instruction": ["Sign/notarize as agent for LVLST Capital; do not S4S"] }, "139773": { "instruction": ["Please contact the tagged credit manager on the job. See Project Tags on admin project page or job in-app."] }, "207443": { "instruction": ["SRS Bespoke - Batch S4S"] }, "210090": { "instruction": ["User does not notarize MT Prelims"] }}; 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; \ } \ " );