New IMDB Message Boards - Moviechat

Directly integrated replacement on the IMDB message boards using moviechat.org, appears at bottom of all IMDB movie/tv page listings, includes millions of archived posts saved from before the boards closed.

  1. // ==UserScript==
  2. // @name New IMDB Message Boards - Moviechat
  3. // @namespace https://greasyfork.org/en/users/10118-drhouse
  4. // @version 2.3.0
  5. // @description Directly integrated replacement on the IMDB message boards using moviechat.org, appears at bottom of all IMDB movie/tv page listings, includes millions of archived posts saved from before the boards closed.
  6. // @run-at document-ready
  7. // @include https://www.imdb.com/title/*
  8. // @include https://www.imdb.com/name/*
  9. // @include *://*.moviechat.org/*
  10. // @include *://moviechat.org/*
  11. // @exclude *://*.media-imdb.com/*
  12. // @exclude *://*.imdb.com/*/*/releaseinfo*
  13. // @exclude *://*.imdb.com/*/*/bio*
  14. // @exclude *://*.imdb.com/*/*/publicity*
  15. // @exclude *://*.imdb.com/*/*/otherworks*
  16. // @exclude *://*.imdb.com/*/*/awards*
  17. // @exclude *://*.imdb.com/*/*/mediaindex*
  18. // @exclude *://*.imdb.com/*/*/videogallery*
  19. // @exclude *://*.imdb.com/*/*/fullcredits*
  20. // @exclude *://*.imdb.com/*/*/plotsummary*
  21. // @exclude *://*.imdb.com/*/*/synopsis*
  22. // @exclude *://*.imdb.com/*/*/keywords*
  23. // @exclude *://*.imdb.com/*/*/parentalguide*
  24. // @exclude *://*.imdb.com/*/*/locations*
  25. // @exclude *://*.imdb.com/*/*/companycredits*
  26. // @exclude *://*.imdb.com/*/*/technical*
  27. // @exclude *://*.imdb.com/*/*/trivia*
  28. // @exclude *://*.imdb.com/*/*/soundtrack*
  29. // @exclude *://*.imdb.com/*/*/faq*
  30. // @exclude *://*.imdb.com/*/*/reviews*
  31. // @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
  32. // @require https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.18.2/babel.js
  33. // @resource imdbstyle https://greasyfork.org/scripts/29496-moviechat-org-on-imdb-tmdb-desktop-companion/code/MovieChatorg%20on%20IMDbTMDb%20-%20Desktop%20Companion.user.js
  34. // @grant GM_getResourceText
  35. // @author drhouse
  36. // @contributor RandomUsername404
  37. // @license CC-BY-NC-SA-4.0
  38. // @icon https://www.google.com/s2/favicons?domain=imdb.com
  39. // ==/UserScript==
  40. this.$ = this.jQuery = jQuery.noConflict(true);
  41. $(document).ready(function () {
  42. var theparenturl = document.URL;
  43. if (theparenturl.indexOf("reference") != -1)
  44. theparenturl = theparenturl.replace('reference','');
  45.  
  46. if (theparenturl.indexOf("combined") != -1)
  47. theparenturl = theparenturl.replace('combined','');
  48.  
  49. var quest = theparenturl.split('?')[0];
  50. var parts = quest.split('/');
  51. var lastSegment = parts.pop() || parts.pop();
  52.  
  53. if (lastSegment.indexOf("tt") != -1){
  54. var theurl = 'https://www.moviechat.org/movies/';
  55. }
  56.  
  57. if (lastSegment.indexOf("nm") != -1){
  58. theurl = 'https://www.moviechat.org/';
  59. }
  60.  
  61. var simple = (theurl + lastSegment);
  62. //console.info(simple);
  63.  
  64. var chatdiv = $('<div></div>').css('display','block').css('overflow','hidden').css('position','relative').css('height','660px').css('width','640px');
  65.  
  66. var lastart_new = $('section[cel_widget_id="StaticFeature_UserReviews"]')
  67. var lastart_new2 = $("#maindetails_center_bottom > div.article").last()
  68.  
  69. setTimeout(function(){
  70. $(chatdiv).insertAfter(lastart_new);
  71. $(chatdiv).insertBefore(lastart_new2);
  72. }, 100);
  73.  
  74.  
  75. //lazy else
  76. $(chatdiv).insertBefore('#tn15bot');
  77.  
  78. var ifrm = document.createElement("iframe");
  79. ifrm.setAttribute("id", "msgframe");
  80. ifrm.setAttribute("src", simple);
  81. ifrm.setAttribute("style", "scrolling=no;position=absolute;padding=0px");
  82. ifrm.setAttribute("frameborder", "0");
  83. ifrm.style.height = 600+"px";
  84. ifrm.style.width = 640+"px";
  85. $(ifrm).appendTo(chatdiv);
  86.  
  87. $('body').css('background-color','#fff');
  88. $('.main').css('box-shadow','0px 0px 0px 0px');
  89.  
  90.  
  91. eval(GM_getResourceText("imdbstyle"))
  92.  
  93. });