nascent / iCheckMovies - Internal IMDB links

// ==UserScript==
// @name           iCheckMovies - Internal IMDB links
// @namespace      icheckmovies.com
// @description    Open IMDB links in the same tabs when using icheckmovies
// @include        http://*.icheckmovies.com/movie*
// @include        https://*.icheckmovies.com/movie*
// @license GPL-3.0-or-later
// @updateURL https://openuserjs.org/meta/nascent/iCheckMovies_-_Internal_IMDB_links.meta.js
// @version 1.02
//
// @history	1.02 removed external update checker dependency. fixed for imdb https. support for beta site
// @history	1.01 Restored IMDB icon & altered support for the beta
// @history	1.00 Initial release
// ==/UserScript==


//Replace external link opening code
var html = document.body.innerHTML;
//Visit IMDB page (menu link)
html = html.replace( /class="optionIcon optionIMDB external" /g, '/class="optionIcon optionIMDB"' );
//View IMDB information (main link)
html = html.replace( /class="icon iconSmall iconIMDB external" /g, '/class="icon iconSmall iconIMDB"' );
html = html.replace( /class="button is-imdb external" /g, '/class="button is-imdb"' );

document.body.innerHTML = html;