Redirect on desktop vk.com

Автоматическое перенаправленные на десктопную страницу vk.com с мобильной версии m.vk.com

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

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

(У мене вже є менеджер скриптів, дайте мені встановити його!)

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.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @version         1.0.4
// @name            Redirect on desktop vk.com
// @namespace       Редирект на десктопную страницу vk.com с мобильной версии m.vk.com
// @description     Автоматическое перенаправленные на десктопную страницу vk.com с мобильной версии m.vk.com
// @icon            http://i3.imageban.ru/out/2016/03/20/01c7e5fa30d361f626cf6541d7c3deb8.png
// @match           https://m.vk.com/*
// @match           http://m.vk.com/*
// ==/UserScript==

(function() {
    'use strict';
    var url = 'https://vk.com' + window.location.href.toString().split(window.location.host)[1];
    var form = document.createElement('form');
    form.method = 'post';
    form.action = url;
    document.body.appendChild(form);
    form.submit();
})();