Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
58659ac
enable single-click installation
ksuquix Aug 1, 2013
b73d806
Adding another regex to linkify bugzilla bugs
ToeBee Nov 26, 2013
e0fac40
Changing readme to point to the kstateome repo
ToeBee Nov 26, 2013
38ee552
Bumping version number since I changed things
ToeBee Nov 26, 2013
aa631a3
Move the link logic to a seperate function
Dec 2, 2013
33e491b
Changed the jquery selector
Dec 2, 2013
ae585bd
Merge pull request #1 from kstateome/Comments-link
Dec 2, 2013
5a56870
Version bump
Dec 2, 2013
8b33fbd
Update README.md
imjonathanwilson Jan 17, 2014
5eaaeeb
Update leankit-servicenow.tamper.js
ksuquix Apr 21, 2014
2634afe
added onetab
ksuquix May 23, 2014
4fb922c
added stoppropagation
ksuquix Jul 14, 2015
45ea597
g option on regex
ksuquix Jul 14, 2015
6235646
Merge pull request #1 from kstateome/master
ksuquix Jul 14, 2015
4b7c6f1
Adding Changes and Enhancements
gdressman Oct 2, 2015
1e98af4
Required jQuery
ifandelse Feb 4, 2016
95d6f98
Merge pull request #2 from ifandelse/master
imjonathanwilson Feb 4, 2016
abb5f0c
bumped version to force auto-update
ksuquix Feb 4, 2016
ee0f096
greasemonkey compatability
imjonathanwilson Feb 5, 2016
9a916ed
Simple redirect to take you to the kstateome dashboard when you hit g…
ToeBee Dec 14, 2016
48a58f1
Update leankit-servicenow.tamper.js
ksuquix Jul 18, 2017
723c728
Update leankit-servicenow.tamper.js
ksuquix Jul 18, 2017
7db3258
Merge pull request #2 from kstateome/leankit-uichange
ksuquix Jul 18, 2017
4393b37
Merge pull request #3 from ksuquix/master
ksuquix Jul 18, 2017
f9ce454
Add Project links
gdressman Aug 2, 2017
86901ac
version bump from last change
ksuquix Aug 22, 2017
38ef384
Update leankit-servicenow.tamper.js
ksuquix Oct 6, 2017
67bf193
initial version for sharepoint documentation tamper
ksuquix May 10, 2018
32beeb0
rusty skills
ksuquix May 10, 2018
e16bb3b
search not in location pathname
ksuquix May 10, 2018
97ea59b
click != trigger
ksuquix May 10, 2018
eb5daa9
delay slightly
ksuquix May 10, 2018
2e13602
polling
ksuquix May 10, 2018
3ea72ca
polling faster
ksuquix May 11, 2018
ecc4f6d
polling faster - clearinterval
ksuquix May 11, 2018
f9f2997
remove debug statement
ksuquix May 11, 2018
edbf69b
Create test.js
ksuquix Oct 5, 2018
9176995
Merge pull request #3 from kstateome/master
ksuquix Mar 8, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
* <a href="https://raw.github.com/kstateome/userscript/master/leankit-servicenow.tamper.js">Click to Install</a>
+ 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

13 changes: 13 additions & 0 deletions github-goto-org.tamper.js
Original file line number Diff line number Diff line change
@@ -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');
19 changes: 0 additions & 19 deletions leankit-servicenow.js

This file was deleted.

22 changes: 22 additions & 0 deletions leankit-servicenow.tamper.js
Original file line number Diff line number Diff line change
@@ -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,
'<a target="_" style="color:blue" href="https://kstate.service-now.com/nav_to.do?uri=text_search_exact_match.do?sysparm_search=$1" onclick="event.stopPropagation();">$1</a>');
label = label.replace(/(Bug )([0-9]+)/i,'<a target="_" style="color:blue" href="https://tools.ome.ksu.edu/bugzilla/show_bug.cgi?id=$2">$1$2</a>');
$(this).html(label);
$(this).addClass("wserewrite");
});
},1000);
17 changes: 17 additions & 0 deletions servicenow-onetab.tamper.js
Original file line number Diff line number Diff line change
@@ -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;
});

30 changes: 30 additions & 0 deletions sharepoint-doc.tamper.js
Original file line number Diff line number Diff line change
@@ -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

1 change: 1 addition & 0 deletions test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
console.log("test");