Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var fondo = document.body.querySelector("#thread-interactions");
- let board = !fondo;
- if (board) {
- //pagina board
- fondo = document.createElement("div");
- document.body.querySelector('form[name="postcontrols"]').append(fondo);
- }
- fondo.classList.add("fondo-flex");
- fondo.style.display = "flex";
- fondo.style.justifyContent = "space-between";
- fondo.style.alignItems = "center";
- fondo.style.margin = "0px";
- let fondoEnd = document.createElement("div");
- fondoEnd.classList.add("fondo-end-flex");
- fondoEnd.style.display = "flex";
- fondoEnd.style.flexDirection = "column";
- fondoEnd.style.alignItems = "end";
- let qab = document.body.querySelector(".quick_actions_bottom");
- let pmf = document.body.querySelector("#post-moderation-fields");
- pmf.style.float = "none !important";
- pmf.style.textAlign = "left";
- pmf.querySelector("#report-fields").style.textAlign = "right";
- let bqr = document.body.querySelector(".bottom-quick-reply");
- // rimuove ricerca fine pagina
- if (board) {
- let srcForm = qab.querySelector("form");
- if (srcForm) srcForm.remove();
- }
- // spostare quick_actions_bottom, .bottom-quick-reply e post-moderation-fields alla fine di form-controls
- fondo.append(qab);
- if (bqr) fondo.append(bqr);
- fondo.append(pmf);
- fondo.append(qab);
- if (bqr) fondo.append(bqr);
- fondoEnd.append(pmf);
- if (!board) {
- //thread stats da spostare alla fine di form postcontrols altrimenti footer non รจ centrato
- let ts = document.body.querySelector("#thread_stats");
- ts.style.marginRight = "0px";
- fondoEnd.append(ts)
- }
- fondo.append(fondoEnd);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement