Manyvids Menu

A Script to improve the ManyVids Menu

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

You will need to install an extension such as Tampermonkey to install this script.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

You will need to install an extension such as Tampermonkey to install this script.

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==UserScript==
// @name     Manyvids Menu
// @version  0.1
// @namespace https://www.manyvids.com
// @include https://www.manyvids.com*
// @description A Script to improve the ManyVids Menu
// @author Sophie Ladder
// ==/UserScript==

var menu = document.getElementsByClassName("user-nav-header")[0];
var menulist = menu.nextElementSibling;
var mycontent = menulist.children[1];
var mymv = menulist.children[2];
var market = menulist.children[3];
var mycentry = mycontent.children[0];
var contentM = mymv.children[0].children[4];
mycentry.insertBefore(contentM, mycentry.children[0]);
var uplink=document.createElement('a');
var uplinkText = document.createTextNode("Upload ↥");
uplink.appendChild(uplinkText);
uplink.title = "Upload";
uplink.href='https://www.manyvids.com/Upload-vids/';
uplink.style.margin = "0 auto";
uplink.style.color = "#373a3c";
menu.appendChild(uplink);

uplink.onmouseover = function() {this.style.color = "#2196f3";}
uplink.onmouseout = function() {this.style.color = "#373a3c";}

var navup = document.createElement('a');
var navuptxt = document.createTextNode("Upload ↥");
navup.appendChild(navuptxt);
navup.title = "Upload";
navup.href='https://www.manyvids.com/Upload-vids/';
var primaryNav = document.getElementsByClassName("primary-nav")[0];
primaryNav.children[0].appendChild(navup);

navup.onmouseover = function() { 
    this.style.color = "#2196f3";
  	this.style.cursor = "pointer"; }
navup.onmouseout = function() {
    this.style.color = "#373a3c";
  	this.style.cursor = "auto"; }

var mvFlyers = mymv.children[0].children[4];
var marketItem = market.children[0].children[0];
market.children[0].insertBefore(mvFlyers, marketItem);