GithubHelp home page GithubHelp logo

js-ninja-href's Introduction

js-ninja-href

Javascript native library to hide / cloak your real url link.

Why

Really useful to hide your referral link. Get all your lost revenue, because some people don't want to use your referral link.

It will innocently show a clean url, but when the user click ( left , middle, right ) it will redirect them to somewhere else.

It use native javascript, no additional library like jQuery needed.

Release Info

Next version might completely hidden from the element ( not using data-ninja-url and data-ninja-target ) anymore.

Install

Download and extract the .zip file: download a ZIP

Setup

Include the script: ninja-href.min.js

<script src="js/ninja-href.min.js"></script>

Now run the ninja-href function ( by default, it will listen to ninja-href class )

    ninja_href(".ninja-href");

Set the link you want to hide / cloak just like this ( open in new window ):

<a href="http://google.com/" class="ninja-href" data-ninja-url="http://frozenfire.us/" data-ninja-target="_blank"> Go to Google </a>

You can also open the link in current window :

    <a href="https://tomplayer.top/" class="ninja-href" data-ninja-url="https://m.do.co/c/9072c848dc6e" data-ninja-target="_self"> TOP Charts 100 WORLD & 50 K-POP! </a>

Very useful to cloak referral link just like this :

    <a href="https://google.com/free/RlJPWkVORklSRS1UT01QTEFZRVIuQVBQLU1JQ0hBRUxIQVJUT01PLkNPTQ==" class="ninja-href" data-ninja-url="https://m.do.co/c/9072c848dc6e" data-ninja-target="_self"> GET FREE 10 USD FOR SSD VPS HOSTING! ( You can use it for 2 months ) </a>

jsFiddle Example : https://jsfiddle.net/t5f7n7gL/1/

js-ninja-href's People

Contributors

michaelhartomo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

js-ninja-href's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.