Created
July 30, 2015 04:10
-
-
Save knoajp/67a28635b0100c951ea5 to your computer and use it in GitHub Desktop.
マイナビの記事前全面広告をスキップするGreasemonkeyを少々更新。ついでに日経トレンディネットにも対応。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Fullscreen Ad Skipper | |
// @namespace knoa.jp | |
// @description 憎たらしい全画面広告を自動でスキップします。 | |
// @include http://news.mynavi.jp/* | |
// @include http://trendy.nikkeibp.co.jp/welcome/* | |
// ==/UserScript== | |
(function(){ | |
switch(true){ | |
case location.href.match('http://news.mynavi.jp/') != null: | |
if(document.body.className.match(/\bwelcome\b/)){ | |
location.reload(); | |
} | |
break; | |
case location.href.match('http://trendy.nikkeibp.co.jp/welcome/') != null: | |
document.querySelector('#topheader a').click(); | |
break; | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment