diff --git a/README.md b/README.md index cf52eab..c7fe722 100644 --- a/README.md +++ b/README.md @@ -10,14 +10,16 @@ Tested with TamperMonkey in Chrome. Should work with GreaseMonkey as well. * Enable "Allow access to file URLs" in Chrome + chrome://extensions -* Go to leankit-servicenow.tamper.js +* Click to Install + click on Raw ## Sync to all Chrome * Make sure you are logged into google on each instance * Chrome sync - + Tampermonkey->Settings->TESLA->chrome sync->save + + Tampermonkey->Settings + + General->config mode at least Beginner + + TESLA->chrome sync->save + settings->(bottom)->restart tampermonkey + click on the notification to enable sync diff --git a/github-goto-org.tamper.js b/github-goto-org.tamper.js new file mode 100644 index 0000000..482aad9 --- /dev/null +++ b/github-goto-org.tamper.js @@ -0,0 +1,13 @@ +// ==UserScript== +// @name GitHub goto org +// @namespace https://github.com/ +// @version 0.1 +// @description Automatically redirect to the kstateome GitHub org +// @author Toby +// @match https://github.com/ +// @grant none +// ==/UserScript== +/* jshint -W097 */ +'use strict'; + +window.location.replace('https://github.com/orgs/kstateome/dashboard'); diff --git a/leankit-servicenow.js b/leankit-servicenow.js deleted file mode 100644 index 7a89e9d..0000000 --- a/leankit-servicenow.js +++ /dev/null @@ -1,19 +0,0 @@ -// ==UserScript== -// @name ServiceNow Leankit Link Replacer -// @namespace https://github.com/jeremiahshirk/userscript -// @version 0.0.3 -// @description replace servicenow identifiers in LeanKit with a link -// @include https://ksu.leankit.com/* -// @run-at document-end -// ==/UserScript== - -setInterval(function(){ - $("div.text").not(".wserewrite") - .each(function () { - label = $(this).text().replace( - /((RITM|REQ|INC|TASK)[0-9]+)/, - '$1'); - $(this).html(label); - $(this).addClass("wserewrite"); - }); -},1000); diff --git a/leankit-servicenow.tamper.js b/leankit-servicenow.tamper.js new file mode 100644 index 0000000..42fbf76 --- /dev/null +++ b/leankit-servicenow.tamper.js @@ -0,0 +1,22 @@ +// ==UserScript== +// @name ServiceNow Leankit Link Replacer +// @namespace https://github.com/kstateome/userscript +// @version 0.0.13 +// @description replace servicenow identifiers in LeanKit with a link +// @include https://ksu.leankit.com/* +// @require http://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js +// @grant GM_addStyle +// @run-at document-end +// ==/UserScript== + +setInterval(function(){ + $("div.text, div.kb-comment-info-section, div.card-text").not(".wserewrite") + .each(function () { + label = $(this).text().replace( + /((PRB|RITM|REQ|INC|TASK|CHG|ENHC|PRJ)[0-9]+)/g, + '$1'); + label = label.replace(/(Bug )([0-9]+)/i,'$1$2'); + $(this).html(label); + $(this).addClass("wserewrite"); + }); +},1000); diff --git a/servicenow-onetab.tamper.js b/servicenow-onetab.tamper.js new file mode 100644 index 0000000..97019a1 --- /dev/null +++ b/servicenow-onetab.tamper.js @@ -0,0 +1,17 @@ +// ==UserScript== +// @name ServiceNow Tab opener to hit same tab +// @namespace https://github.com/kstateome/userscript +// @version 0.0.1 +// @description modify servicenow links to add target="SN" +// @include https://mail.google.com/mail/* +// @require https://code.jquery.com/jquery-1.10.2.min.js +// @run-at document-end +// ==/UserScript== + + + + $('body').on('click','[href*="https://kstate.service-now.com/"]', function(e) { + window.open($(this).attr('href'),'SN'); + return false; + }); + diff --git a/sharepoint-doc.tamper.js b/sharepoint-doc.tamper.js new file mode 100644 index 0000000..19b4f53 --- /dev/null +++ b/sharepoint-doc.tamper.js @@ -0,0 +1,30 @@ +// ==UserScript== +// @name EST Sharepoint documentation updates +// @namespace https://github.com/kstateome/userscript +// @version 0.0.8 +// @description automate some sharepoint things +// @include https://ksuemailprod.sharepoint.com/sites/est/* +// @require https://code.jquery.com/jquery-latest.min.js +// @grant GM_addStyle +// @run-at document-end +// ==/UserScript== + +function loadoverview(){ +// console.log("overview check"); + if(window.location.search.indexOf('id=')>0) { + over=$("a:contains('Overview.aspx')").attr('href'); + if(over) { +// console.log("overview found"); + window.location = over; + clearInterval(overviewchecker); + } + } +} +if(window.location.pathname.indexOf('Pages/Forms/AllItems.aspx')>0) { + loadoverview(); + var overviewchecker = setInterval(loadoverview,100); +} + +// polling +// on change: div.ms-List-page + diff --git a/test.js b/test.js new file mode 100644 index 0000000..14c198c --- /dev/null +++ b/test.js @@ -0,0 +1 @@ +console.log("test");