-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathctr_dropdowns.user.js
More file actions
25 lines (24 loc) · 976 Bytes
/
ctr_dropdowns.user.js
File metadata and controls
25 lines (24 loc) · 976 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// ==UserScript==
// @name CTR Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description fix dropdowns in CTR-> My Reports
// @author Erland
// @match https://apps.ne.capgemini.com/Applications/CTR/
// @match https://apps.ne.capgemini.com/applications/CTR/
// @match https://apps-x.nordic.capgemini.com/applications/CTR/
// @match https://apps.ne.capgemini.com/Applications//CTR/
// @grant none
// ==/UserScript==
window.onload = function() {
var frames = document.getElementsByName("FrameMain");
frames.forEach(function(myFrame){
var myFrameContent = (myFrame.contentWindow || myFrame.contentDocument);
var buttons = myFrameContent.document.body.querySelectorAll("button.fieldtxt3");
buttons.forEach(function(element){
element.addEventListener("click", function(event){
event.preventDefault();
});
});
});
}