Skip to content

Instantly share code, notes, and snippets.

@cevherkarakoc
Last active April 15, 2017 18:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cevherkarakoc/b30765fc9288a919e0271d35f8bfcba7 to your computer and use it in GitHub Desktop.
Save cevherkarakoc/b30765fc9288a919e0271d35f8bfcba7 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name IMDB Orjinal title
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author cevherkarakoc
// @include http://www.imdb.com/title/tt*
// @grant none
// ==/UserScript==
(function() {
'use strict';
var orginalTitle = document.querySelector(".originalTitle").innerText.replace("(original title)", "");
var yearElm = document.querySelector("#titleYear").innerHTML;
var title = document.querySelector(".title_wrapper").firstElementChild;
document.querySelector(".originalTitle").innerText = title.innerText;
title.innerHTML = orginalTitle + yearElm;
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment