8000 GitHub - mitch-cohen/nograb: JQuery plug-in that replaces img tags with divs to prevent easy download.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

JQuery plug-in that replaces img tags with divs to prevent easy download.

Notifications You must be signed in to change notification settings

mitch-cohen/nograb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

nograb (works with JQuery 1.6.4 and higher)

JQuery plug-in that replaces img tags with divs to prevent easy download. It only works with img tags and not type="image".

Why did I create this?

I am guessing someone out there wants to make scraping their site more difficult. So, this was my solution.

But I can still parse out the images!

Yes. That is correct. However, this plugin was made to make it harder not impossible to scrape images.

Usage

You can use any selector to grab the img elements that you want nograb to be applied to.
For example Let's say you want to apply nograb to the following:

<img id='profile-pic' src="somepic.jpg" >

Your selector can be:

	$('#profile-pic').nograb();

If you don't want to use a class, you can apply the 'nograb' markup attribute like the following example.

<img nograb src="somepic.jpg" >

Then, you can call either of the following:

	$.nograb();

Or

	$('img[nograb]').nograb();  ///More explicit but not needed because of the above example.

JSFIDDLE example: http://jsfiddle.net/jfhw7/

About

JQuery plug-in that replaces img tags with divs to prevent easy download.

Resources

Stars

Watchers

Forks

< 390E /div>

Releases

No releases published

Packages

No packages published
0