-
Notifications
You must be signed in to change notification settings - Fork 1
/
pl_top_bar.user.js
37 lines (30 loc) · 1.11 KB
/
pl_top_bar.user.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// ==UserScript==
// @name pl minimal
// @namespace http://tampermonkey.net/
// @version 0.2
// @description try to take over the world!
// @author hyper440
// @match https://pornolab.net/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=pornolab.net
// @grant none
// ==/UserScript==
(function() {
'use strict';
const topmenu = document.querySelector(".topmenu");
topmenu.style.padding = 0;
topmenu.style.margin = 0;
topmenu.style.top = 0;
topmenu.style.position = "fixed";
topmenu.style.zIndex = 10;
const logo = document.getElementById("logo");
logo.style.display = "none";
const search = document.getElementById("quick-search");
const topmenuTR = document.querySelector(".topmenu table tr");
const secondChild = topmenuTR.children[2];
// Creating a new td element
const newTd = document.createElement("td");
// Appending "search" inside the new td element
newTd.appendChild(search);
// Inserting the new td element before the second child of topmenuTR
topmenuTR.insertBefore(newTd, secondChild);
})();