forked from hyper440/userscripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpl_top_bar.user.js
More file actions
27 lines (22 loc) · 840 Bytes
/
pl_top_bar.user.js
File metadata and controls
27 lines (22 loc) · 840 Bytes
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
// ==UserScript==
// @name top bar
// @namespace http://tampermonkey.net/
// @version 2024-01-28
// @description try to take over the world!
// @author You
// @match https://pornolab.net/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=pornolab.net
// @grant none
// ==/UserScript==
(function() {
'use strict';
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);
})();