您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Bring message boards back on IMDb mobile site by using MovieChat.org boards.
当前为
// ==UserScript== // @name MovieChat.org Message Boards on m.IMDb.com // @namespace https://greasyfork.org/en/users/105361-randomusername404 // @version 1.30 // @description Bring message boards back on IMDb mobile site by using MovieChat.org boards. // @run-at document-start // @include *://m.imdb.com/title/* // @include *://m.imdb.com/name/* // @include *://www.moviechat.org/* // @require https://code.jquery.com/jquery-3.3.1.min.js // @author RandomUsername404 // @grant none // @icon http://ia.media-imdb.com/images/G/01/imdb/images/mobile/apple-touch-icon-mobile-2541571834._CB522736227_.png // ==/UserScript== $(window).on( "load", function() { // Get movie ID var movieID = window.location.pathname; movieID = movieID.split("title/").pop(); movieID = movieID.split("/").shift(); // Get iframe position and dimensions var positionReference = $('.row:last'); var height = $(window).innerHeight()*0.9; var width = $("#titleOverview").width();; // Create iframe var movieChat = document.createElement("iframe"); var movieChatLink = "https://www.moviechat.org/movies/" + movieID; $(movieChat).attr({"src":movieChatLink,"allowtransparency":"false"}); $(movieChat).css( {"height":height+"px","width":width+"px","border":"none"} ); $(movieChat).insertBefore(positionReference); // Add title and separator above iframe var title = document.createElement("div"); $(title).addClass('article'); $(title).html('<h2>Discuss on MovieChat</h2>'); $(title).insertBefore(movieChat); });