Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name boje kordy
- // @version 1.0
- // @include *hegira.com.pl/*
- // @copyright free
- // ==/UserScript==
- ("use strict");
- if ($("p:contains( Punkty nawigacyjne)").length > 0) {
- for (
- let i = 0;
- i <
- $("p:contains( Punkty nawigacyjne)")
- .next()
- .children("tbody")
- .children()
- .children()
- .children("p").length;
- i++
- ) {
- const kordy = $("p:contains( Punkty nawigacyjne)")
- .next()
- .children("tbody")
- .children()
- .children()
- .children("p")
- .children("a")
- [i].outerHTML.replace('<a href="blanc.php4?', "")
- .split(";speed=50000")
- .shift()
- .replace(/(w\d=)|(&)/g, "")
- .replace(/;/g, ", ");
- $("p:contains( Punkty nawigacyjne)")
- .next()
- .children("tbody")
- .children()
- .children()
- .children("p")
- .children("a")[i].outerHTML = $("p:contains( Punkty nawigacyjne)")
- .next()
- .children("tbody")
- .children()
- .children()
- .children("p")
- .children("a")
- [i].outerHTML.replace("<a href=", `${kordy}<br>$&`);
- }
- }
Add Comment
Please, Sign In to add comment