NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name scroll_to_case_updates // @description scroll_to_case_updates // @version 1.0 // @author whatnowmax // @license MIT // @match https://crm.stagrp.com/index.php?action=DetailView&module=Cases&record=* // @match https://crm.stagrp.com/index.php?module=Cases* // @run-at document-end // @grant none // ==/UserScript== //make button var _btnScroll = document.createElement("BUTTON"); //set button title var buttonTitle = document.createTextNode("Scroll To Case Updates"); _btnScroll.appendChild(buttonTitle); _btnScroll.target = "_blank"; _btnScroll.onclick = scroll_to_casenotes; document.getElementById("case_number").appendChild(_btnScroll); function scroll_to_casenotes() { document.getElementById("case_updates").scrollIntoView(false); }