aalves / Jabá Skipper

// ==UserScript==
// @namespace     https://openuserjs.org/users/aalves
// @name          Jabá Skipper
// @description   Showing the current basic and recommended format for a User script.
// @copyright     2017, aalves (https://openuserjs.org/users/aalves)
// @license MIT
// @version       0.0.1
// @include       https://www.youtube.com/*
// @grant none
// @require https://www.youtube.com/iframe_api
// ==/UserScript==

// ==OpenUserJS==
// @author aalves
// ==/OpenUserJS==

// @run-at      document-start
// @connect     youtube.com

/**
 *
 * Please begin typing or paste your User script now.
 *
 */

var videoName = document.getElementById("eow-title").title,
  substring = "NerdPlayer";

var windowURL = window.location.href + "&t=140";

window.onload = function () {
  if (videoName.includes(substring) && !window.location.href.includes("&t=140")) {
    window.open(windowURL, "_self");
  }
}