weed seedling id ?
Verfasst: Do Jun 29, 2023 11:59 am
Das neue Pflanzenbestimmungsforum
https://pflanzenbestimmung.flora-germanica.de/
https://pflanzenbestimmung.flora-germanica.de/viewtopic.php?t=1615
Code: Alles auswählen
// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match http://*/*
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant none
// @require http://code.jquery.com/jquery-latest.js
// ==/UserScript==
var input=document.createElement("input");
input.type="button";
input.value="Next";
var input1=document.createElement("input");
input1.type="button";
input1.value="Prev";
var found = parseInt(window.location.href.match(/\d+/g));
//alert(window.location.href.match(/\d+/));
//alert(window.location.href.replace(found.toString(),(found+1).toString()));
document.body.appendChild(input);
document.body.appendChild(input1);
input.onclick = function() {location = window.location.href.replace(found.toString(),(found+1).toString())};
input1.onclick = function() {location = window.location.href.replace(found.toString(),(found-1).toString())};
while (document.body.innerHTML.includes('wurde nicht gefunden'))
{
location = window.location.href.replace(found.toString(),(found+1).toString())
}