ThisVid.com Redirect

Redirect to thisvid.com main site (en-us) from localizations (such as it.thisvid.com/* -> thisvid.com/*)

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

Bu betiği yüklemek için Tampermonkey gibi bir uzantı yüklemeniz gerekir.

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.

Bu betiği indirebilmeniz için ayrıca Tampermonkey gibi bir eklenti kurmanız gerekmektedir.

Bu betiği yüklemek için bir betik yöneticisi eklentisi yüklemeniz gerekecektir.

(Zaten bir betik yöneticim var, hadi yükleyelim!)

Bu stili yüklemek için Stylus gibi bir uzantı yüklemeniz gerekir.

Bu stili yüklemek için Stylus gibi bir uzantı kurmanız gerekir.

Bu stili yükleyebilmek için Stylus gibi bir uzantı yüklemeniz gerekir.

Bu stili yüklemek için bir kullanıcı stili yöneticisi uzantısı yüklemeniz gerekir.

Bu stili yüklemek için bir kullanıcı stili yöneticisi uzantısı kurmanız gerekir.

Bu stili yükleyebilmek için bir kullanıcı stili yöneticisi uzantısı yüklemeniz gerekir.

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

// ==UserScript==
// @name         ThisVid.com Redirect
// @namespace    https://thisvid.com
// @version      1.2
// @description  Redirect to thisvid.com main site (en-us) from localizations (such as it.thisvid.com/* -> thisvid.com/*)
// @author       krbd9max
// @match        https://*.thisvid.com/*
// @match        https://thisvid.com/*
// @license      MIT
// @run-at       document-start
// ==/UserScript==
 
(function() {
    'use strict';
 
    // do nothing if we are already on thisvid.com
    if (window.location.hostname === 'thisvid.com') return;
 
    // general Redirect to thisvid.com
    if ( window.location.host != "*.thisvid.com" ) {
        var thisvidRedire = window.location.protocol + "//" + "thisvid.com" + window.location.pathname + window.location.search + window.location.hash;
        window.location.replace (thisvidRedire);
    }
})();