您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Media videos under the modules for Georgia Tech canvas instructure show up in a mobile size even on the desktop. This script changes that.
当前为
- // ==UserScript==
- // @name Canvas module page media width and height
- // @namespace http://tampermonkey.net/
- // @version 0.1
- // @description Media videos under the modules for Georgia Tech canvas instructure show up in a mobile size even on the desktop. This script changes that.
- // @author You
- // @match https://gatech.instructure.com/courses/*/pages/*modules*
- // @icon https://www.google.com/s2/favicons?sz=64&domain=instructure.com
- // @grant none
- // @license MIT
- // ==/UserScript==
- (function() {
- 'use strict';
- if (document.getElementsByTagName("iframe").length > 1) {
- document.getElementsByTagName("iframe")[1].width = "100%";
- document.getElementsByTagName("iframe")[2].width = "100%";
- }
- if (document.getElementsByTagName("iframe").length > 2) {
- document.getElementsByTagName("iframe")[1].height = "1000px";
- document.getElementsByTagName("iframe")[2].height = "1000px";
- }
- })();