Skip to content

horans/youtube-revenue-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YouTube Revenue Calculator

"YouTube Revenue Calculator" (or "YTRC"), will calculate the revenue of YouTube video/channel, base on video view counts. Multiple options provided.

Install

Upload everything to your server, eg.:

//sample.com/ytrc/

Usage

Embed iframe.html into your page.

<iframe src="//sample.com/ytrc/iframe.html" frameBorder="0" width="1000" height="800"></iframe>

Options

All of the options can pass by URL query. When you change them in setting panel, the URL will update at the same time. Most of the options use "1/0" to present "on/off". (eg., channel=1&link=0)

  • key: Generate your own YouTube app key.
    • Change it in iframe head or pass by URL query.
    • Show in URL only when "Change Key" option is on with setting panel.
  • path: To input a preset youtube video/channel url.
    • The preset path will be auto queried on start.
  • channel: Default mode is for "video", turn this on for "channel".
  • desc: To skip description under heading, turn this off.
  • link: To manually input video views, turn this off.
  • rpm: To manually input RPM, turn this on.
  • note: To show note for RPM, turn this on.
  • highlight: To highlight result with YouTube red background, turn this on.
  • detail: To show detail for channel/video, turn this on.
    • Disabled when link is off, or highlight is on.
  • title: You can override title with this.
    • Show in URL only when "Change Title" option is on with setting panel.

Extra

Vendor

References

Linter

Change Log

220329

  • change vendor to vue v2

211020

  • auto query path on start
  • check channel/video id length

211018

  • allow pass video/channel path from url
  • support "youtube.com/embed/" path
  • update vendor with online version

210311

  • update vendors
  • update api key

190702

  • allow "youtu.be/" path

180807

  • add promise polyfill

180731

  • show error
  • replace CPM with RPM

180727

  • initial release