Forked from Michael Bruno
- Download a plugin called Tamper Monkey.
- Navigate to http://oneview.kroger.com/
- Click the Tampermonkey extension icon in your browser, and select "create new script"
- Paste the script into the function body.
| javascript: (function() { | |
| const generateBranchName = () => { | |
| const title = document.querySelector("title").innerText; | |
| const issueCodeMatch = title.match(/\[(.*)\]/); | |
| if (!issueCodeMatch) return; | |
| let issueDescription = title.replace(/\[.*]\s/, ""); | |
| const parts = issueDescription.split(" - "); | |
| issueDescription = parts.slice(0, parts.length - 1).join(" - "); | |
| issueDescription = issueDescription.replace(/[^a-zA-Z0-9\s-]/g, ''); |
| extends: ['eslint-config-airbnb'], | |
| rules: { | |
| 'comma-dangle': [2, 'never'], | |
| 'id-length': [2, { | |
| 'min': 2, | |
| 'properties': 'never', | |
| 'exceptions': ['$', '_', 'e', 'i', 'j', 'a', 'b', 'n'] | |
| }], | |
| 'indent': [2, 'tab', { | |
| 'SwitchCase': 1 |
| var findChildData = function findChildData (targetParent, rootData) { | |
| if (_.isEmpty(targetParent)) { | |
| return rootData; | |
| } | |
| if (rootData === undefined) { | |
| return false; | |
| } | |
| for (var i = 0; i < rootData.length; i++) { |
| javascript: (function() { | |
| let repoName; | |
| let repoAuthor = document.querySelectorAll('#brandBand_1 .slds-form.slds-form_stacked.slds-grid.slds-page-header__detail-row .slds-page-header__detail-block.forceHighlightsDesktopListRecordItem:nth-of-type(6) a.textUnderline')[0].textContent; | |
| let issueNumber; | |
| if (document.querySelector('#brandBand_1 .slds-form.slds-form_stacked.slds-grid.slds-page-header__detail-row .slds-page-header__detail-block.forceHighlightsDesktopListRecordItem .uiOutputText') !== null) { | |
| issueNumber = document.querySelector('#brandBand_1 .slds-form.slds-form_stacked.slds-grid.slds-page-header__detail-row .slds-page-header__detail-block.forceHighlightsDesktopListRecordItem .uiOutputText').textContent; | |
| } else { | |
| console.error('can not find issue number'); |
| { | |
| "binary_file_patterns": | |
| [ | |
| "*.jpg", | |
| "*.jpeg", | |
| "*.png", | |
| "*.gif", | |
| "*.ttf", | |
| "*.tga", | |
| "*.dds", |
Forked from Michael Bruno