raingart / Ali redirect to full page

// ==UserScript==
// @name         Ali redirect to full page
// @namespace    aliexpress-redirect
// @version      0.2
// @description  Redirecting to the full version of product pages
// @author       raingart
// @include      http*://m.*.aliexpress.*/*
// @include      http*://*.aliexpress.*/i/*
// @include      http*://aliexpress.*/i/*
// @run-at       document-start
// @license      Apache-2.0
// ==/UserScript==

location.href = /^m\./.test(location.hostname) 
  ? location.href.replace(location.hostname, location.hostname.split('.').slice(-2).join('.')) // ex: https://m.id.aliexpress.com/i/100000000.html
  : location.href.replace("/i/", "/item/");