Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name YT Magic Actions - Bottom Nav
- // @namespace http://tampermonkey.net/
- // @version 1.2
- // @description Bar position on the bottom. Pastebin: https://pastebin.com/bSr0gFpz
- // @author Kamikaze
- // @match https://www.youtube.com/watch?v=*
- // @icon https://t2.gstatic.com/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&url=http://youtube.com&size=16
- // @require http://code.jquery.com/jquery-latest.js
- // @grant none
- // ==/UserScript==
- function waitForElement(elementPath, callBack){
- window.setTimeout(() => {
- if($(elementPath).length){
- setTimeout(() => {
- callBack(elementPath, $(elementPath));
- }, 3000)
- }else{
- waitForElement(elementPath, callBack);
- }
- }, 500)
- }
- // Moving Div below Video
- waitForElement("#primary", () => {
- document.getElementById('primary').prepend(document.getElementById('watch7-content'))
- });
Add Comment
Please, Sign In to add comment