Last active
August 22, 2022 07:56
-
-
Save fyr77/bf793851a4a95b6554aebdee62fb6f4d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name FinPuls-OpenAll | |
// @author fyr77 | |
// @version 1.2 | |
// @include *://ihrpuls.safe7.at/puls.exe/Schadenliste* | |
// @include *://ihrpuls.safe7.at/puls.exe/AblaufCenter* | |
// @include *://ihrpuls.safe7.at/puls.exe/Antragskontrolle* | |
// @grant none | |
// @run-at document-end | |
// ==/UserScript== | |
function openAll() { | |
for (let i = 0; i < document.getElementsByTagName("a").length; i++) { | |
let currentTag = document.getElementsByTagName("a")[i].href; | |
if (currentTag.includes("KundeSchadenDetail") || currentTag.includes("KundeProduktEdit")) { | |
window.open(currentTag, '_blank'); | |
} | |
} | |
} | |
function addButton() { | |
const button = document.createElement('button'); | |
button.innerText = 'Alle auf Seite öffnen'; | |
button.onclick = openAll; | |
document.getElementById("art-main").appendChild(button); | |
} | |
addButton(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment