Ads Killer
by
Rewish
2013-12-21 [2013/12/21 01:58:15]
Killing an ads for the Smartphone pages
@@ -3,6 +3,10 @@
* @description Killing an ads for the Smartphone pages
* @include http://*
* @license MIT License
- * @require jquery
+ * @require
*/
-$('a[href^="http://sp.click.adlantis.jp/"]').remove();
+var selector = '#microad_overlay_zone, a[href^="http://sp.click.adlantis.jp/"]';
+
+Array.prototype.forEach.call(document.querySelectorAll(selector), function(node) {
+ node.parentNode.removeChild(node);
+});
/*
* @title Ads Killer
* @description Killing an ads for the Smartphone pages
* @include http://*
* @license MIT License
* @require
*/
var selector = '#microad_overlay_zone, a[href^="http://sp.click.adlantis.jp/"]';
Array.prototype.forEach.call(document.querySelectorAll(selector), function(node) {
node.parentNode.removeChild(node);
});
- Permalink
- このページへの個別リンクです。
- RAW
- 書かれたコードへの直接のリンクです。
- Packed
- 文字列が圧縮された書かれたコードへのリンクです。
- Userscript
- Greasemonkey 等で利用する場合の .user.js へのリンクです。
- Loader
- @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
- Metadata
- コード中にコメントで @xxx と書かれたメタデータの JSON です。