Greasy Fork

MAM Banner Shrink

Makes it easier to scroll past banner with out removing it.

目前为 2022-03-23 提交的版本。查看 最新版本

// ==UserScript==
// @name MAM Banner Shrink
// @namespace yyyzzz999
// @author yyyzzz999
// @description Makes it easier to scroll past banner with out removing it.
// @include https://www.myanonamouse.net/*
// @version 0.2 (3/23/22)
// @license MIT
// @grant none
// @run-at document-end
// ==/UserScript==
// Many Thanks to GardenShade for advice, testing, and code contributions!
/*jshint esversion: 6 */
/*eslint no-multi-spaces:0 */ //stop pestering me 'cause I learned to type with double spaces!

// Next version should add a resize or hover zoom option...
// https://medium.com/the-z/making-a-resizable-div-in-js-is-not-easy-as-you-think-bda19a1bc53d

document.getElementById("msb").style.height = "100%"; // Banner area will now match image height!
document.getElementById("msb").getElementsByTagName('img')[0].height = "88"; // Originally 176