Dictionary.com fullscreen crossword

3/24/2024, 12:07:21 PM

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name        Dictionary.com fullscreen crossword
// @namespace   Violentmonkey Scripts
// @match       https://www.dictionary.com/e/crossword/*
// @grant       none
// @version     1.0.1
// @author      popular-software
// @license MIT
// @description 3/24/2024, 12:07:21 PM
// ==/UserScript==

(() => {
  console.log('running userscript: fullscreen crossword');
  const element = document.querySelector('main iframe');
  element.style = `
   position: absolute;
   left: 0;
   top: 0;
   z-index: 7001;
   width: 100vw;
   height: 100vh;
  `;
  element.parentElement.style = `
   z-index: auto;
  `;
})()