1.0.1 ā€¢ Published 4 years ago

@marco.cianetti/alajs v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

šŸ”— AlaJS ā€” Automated Link Attribution

AlaJS is a simple snippet that adds the source link of a copied text on a web page.

When a user copies a text on a webpage running this snippet and pastes it, the copied text will contain [Source: website/page-url] at the end of it.

This will help your SEO because you can get more backlinks and more visitors.

Also, you will be rightfully credited for your work.

šŸ“ Installation

// TODO: It's CDN stuff. You can use Google Tag Manager for a 3 sec installation.

ā“ Why?

I needed this snippet for my personal website so I decided to make it public. Also, I found someone that is selling these 3 lines of codes for 49$/month and I didn't find it very fair.

āš™ļø How it works?

As I said is pretty simple, it uses the copy event and edits the clipboard data adding the current page URL.

šŸ¤” What happens if they remove my link from pasted text?

You're not gonna get that link, of course.

This snippet is not giving you any garantee on keeping your link on copy-pasted text, but when I found a website with this feature for the first time, and I copy-pasted its content, well I just left its source link on that text because I found it ok, "it deserves to be cited".

It's up to your users.

1.0.1

4 years ago