Manyvids Menu

A Script to improve the ManyVids Menu

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==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);