您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
On large screens, Canvas has limited width on many pages. This script removes the max-width on pages that have a iframe for a PDF or docx, etc.
当前为
// ==UserScript== // @name Canvas PDF Expander // @namespace http://tampermonkey.net/ // @version 0.1 // @description On large screens, Canvas has limited width on many pages. This script removes the max-width on pages that have a iframe for a PDF or docx, etc. // @author Github @jonthanlo411 // @match https://canvas.ucsd.edu/* // @icon https://www.google.com/s2/favicons?sz=64&domain=ucsd.edu // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; // Check if there are two iframes (happens when there is Canvas's pdf in view) if (document.getElementsByTagName("iframe").length == 2) { // Remove the max-width styling on the wrapper to expand accross full screen document.getElementsByClassName("ic-Layout-wrapper")[0].style.maxWidth = "None"; } })();