Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@knoajp
Created July 30, 2015 04:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save knoajp/67a28635b0100c951ea5 to your computer and use it in GitHub Desktop.
Save knoajp/67a28635b0100c951ea5 to your computer and use it in GitHub Desktop.
マイナビの記事前全面広告をスキップするGreasemonkeyを少々更新。ついでに日経トレンディネットにも対応。
// ==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