观看 01:36
We're Getting Mutants in the MCU - The Loop
您喜欢这个视频吗?
打开音效
- 本段文字展示的是脚本的内容,以说明本脚步中不包含任何恶意代码。
- 非技术人员请在指导下观看~
- 我们将这段代码保存为Ban-Wikia-Ad.user.js 文件供大家使用。
- 脚本使用教程请看脚本安装教程 (脚本的安装实际上是很简单的,动动手指所有Wikia页面广告就飞走了的说)。
// ==UserScript== // @name Cleaner Wikia // @description Removes the sidebar and the top ad space from Wikia pages. Also increases the font size to make it more readable. // @include http://*.wikia.com/wiki/* // ==/UserScript== // Remove the sidebar. var rail = document.getElementById('WikiaRail'), main = document.getElementById('WikiaMainContent'), comments = document.getElementsByClassName('commentslikes'), search = document.getElementById('WikiaSearch'), head = document.getElementsByTagName('head')[0], style = document.createElement('style'), header = document.getElementById('WikiaPageHeader'), tally = document.getElementsByClassName('tally'), footer = document.getElementById('WikiaFooter'), adBar = document.getElementById('WikiaBarWrapper'), bottomAd = document.getElementById('WikiaArticleBottomAd'), topAd = document.getElementById('WikiaTopAds'); if (rail) { rail.style.display = 'none'; } if (main) { main.style.width = '100%'; } if (search) { search.style.margin = '0'; search.style.position = 'absolute'; search.style.top = '0'; search.style.right = '20px'; if (tally.length > 0) { tally[0].style.display = 'none'; } } if (bottomAd) { bottomAd.style.display = 'none'; } if (topAd) { topAd.style.display = 'none'; } style.appendChild(document.createTextNode('.WikiaArticle p, #mw-content-text > ul > li { font-size: 1.25em; line-height: 1.75em; font-family: Georgia; } #WikiaArticle { padding: 10px 50px; } #WikiaPageHeader details { /*width: 100%;*/ } .likes { display: none; }')); head.appendChild(style); var box = document.getElementById('HOME_TOP_RIGHT_BOXAD') if(box){ box.style.display = 'none'; } if (footer) { footer.style.display = 'none'; } if (comments.length > 0 && search) { el = comments[0];