Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Nomago Voznired Fix
- // @namespace nonamespace
- // @version 1
- // @description It fixes nomgo
- // @author You
- // @match https://voznired.noleggio-bus.it/VozniRed.aspx
- // @grant none
- // ==/UserScript==
- let table = document.getElementsByTagName('table')[0];
- let tbody = document.getElementsByTagName("tbody")[0];
- let td1 = document.getElementsByTagName("td")[2];
- let td2 = document.getElementsByTagName("td")[3];
- let td3 = document.getElementsByTagName("td")[6];
- let td4 = document.getElementsByTagName("td")[7];
- let trBefore = document.getElementsByTagName("tr")[1];
- let tra = document.createElement('tr');
- let trb = document.createElement('tr');
- tra.appendChild(td1);
- tra.appendChild(td2);
- trb.appendChild(td3);
- trb.appendChild(td4);
- tbody.insertBefore(tra,trBefore);
- tbody.appendChild(trb);
- table.style.width = "250px";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement