npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

hexo-adsense

v1.1.1

Published

Hexo adsense support

Downloads

37

Readme

hexo-adsense

Hexo adsense support

Features

  • can display adsense to all pages except specific posts or pages (multiple supported)
  • can only display adsense to specific posts or pages
  • adsense javascript enchantments (lazy adsense included)
  • support display adsense on localhost
  • random display banner ads
  • automated display in random positions of pseudo html elements (such as header, new line <br/>, after pretext <pre/>) useful for increasing RPM and CTR Adsense Prices.

Demos

try reload page

Installation

Using Git Repository (Development)

npm i git+https://github.com/dimaslanjaka/hexo-adsense.git

Using NPM Repository (Production)

npm i hexo-adsense

_config.yml

# https://github.com/dimaslanjaka/hexo-adsense
adsense:
  # enable(true) or disable(false)
  enable: true
  # ca-pub-xxxx
  pub: ca-pub-1165447249910969
  # in-article ads source
  article_ads:
    - "source/ads/in_article.html"
    - "source/ads/in_article2.html"
  # ads field
  field: "site" # post=only post, site=all pages and posts
  # auto redirect to https
  https: true
  # block user with adblock enabled
  adblock: true
  # exclude pattern to disable adsense
  exclude:
    - "*.min.html"
    - "exclude/**/*"

Article Ads

include to config article_ads

adsense:
  article_ads:
    - "source/ads/in_article.html"

source/ads/in_article.html contents

<!--REMOVE ADSENSE SCRIPT, THIS PLUGIN ALREADY OPTIMIZED THE ADSENSE JAVASCRIPT-->
<!--<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-xxxx" crossorigin="anonymous"></script>-->
<ins class="adsbygoogle"
     style="display:block; text-align:center;"
     data-ad-layout="in-article"
     data-ad-format="fluid"
     data-ad-client="ca-pub-xxxxx"
     data-ad-slot="xxxxx"></ins>
<!--script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script-->

disable options

to disable adsense on pattern _config.yml or set each post adsense: false.

Enable all except specific post

enable adsense on all pages except spescific posts or pages. set _config.yml

adsense:
  enable: true
  field: "site"
  #... pub, article_ads, etc

set post header

title: "Post title"
adsense: false
tags:
  - tags1
  - tags2

Disable all except post

disable adsense on all pages and posts, except specific posts set _config.yml

adsense:
  enable: false # adsense disabled globally
  #... pub, article_ads, etc

set post header

title: "Post title"
adsense: true # adsense will shown only for post with header `adsense: true` / enabled
tags:
  - tags1
  - tags2

Footnote

first development finished on 12 November 2021

Website using Hexo NodeJS Blogging System

Test And Deploy GitHub webmanajemen.com

hexo-adsense

npm version Npm package yearly downloads Minimum node.js version GitHub repo size GitHub last commit

hexo-seo

npm version Npm package yearly downloads Minimum node.js version GitHub repo size GitHub last commit

hexo-blogger-xml

npm version Npm package yearly downloads Minimum node.js version GitHub repo size GitHub last commit