Skip to content

Instantly share code, notes, and snippets.

@fyr77
Last active August 22, 2022 07:56
Show Gist options
  • Save fyr77/bf793851a4a95b6554aebdee62fb6f4d to your computer and use it in GitHub Desktop.
Save fyr77/bf793851a4a95b6554aebdee62fb6f4d to your computer and use it in GitHub Desktop.
// ==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