Deviant Login Shop
 Join deviantART for FREE Take the Tour
×

:iconalpacasovereign: More from alpacasovereign


More from deviantART



Details

Submitted on
January 26
Link
Thumb

Stats

Views
593
Favourites
43 (who?)
Comments
21
×

SO my broseph Astronym  is hella rad and found out how to disable right clicking for your weeblies.

people like to right click and save and steal ocs for some reason, but this is how to take steps to prevent that if you don't want to watermark your images like mad.

-click the design tab and go into your html/css

-click on the right side under 'page layouts', no-header.html

-put this code under the tag, remove spaces in the < >'s

< script type="text/javascript" >
function catch_click(e)
{
if (!e) var e = window.event;

var right_click = (e.which ? (e.which == 3) : (e.button == 2));

if (right_click)
{
alert('Right clicking on this page is not allowed.');
return false;
}
}

document.onmousedown = catch_click;
if (document.captureEvents) document.captureEvents(Event.MOUSEDOWN);
< /script >

save, publish and TA-DA. now no one can right click your images. you can't copy text either, so you'll hav to do ctrl-c for text.

here's how you disable dragging images. this is another way people can steal your pictures, by simply dragging the image into a new tab for the fullsize. NOT ANYMORE, SUCKAS.

-click the design tab and go into your html/css

-at the very top of the code, just put this in:

html, body, div, span, object,
form, input, h1, h2, button, label, a, img {
-moz-user-select: none;
-webkit-user-select: none;
/* this will work for QtWebKit in future */
-webkit-user-drag: none;
}

i recommend making journals/showing/telling people about this so we can prevent theft!

ENJOY.

Add a Comment:
 
:iconshinnp:
Shinnp Featured By Owner Jan 27, 2014  Student Artist
AHH THANK YOU SO MUCH FOR THIS ALI-SAN x9
Reply
:iconfang:
fang Featured By Owner Jan 26, 2014  Student Digital Artist
does this work in all browsers?

i only remember agesss ago when i used mac, the code did not work in safari. not to say don't do it, just wanted to possibly warn about the code's limitations!
Reply
:iconalpacasovereign:
alpacasovereign Featured By Owner Jan 26, 2014  Student Digital Artist
WELL that's true also, the os greatly depends- i know mozilla doesn't supposed my fancy image effects on my thumbnails, but it does work with the no dragging and such?

it's akin to watermarking- if people wanna get past it, they'll find ways but hopefully it just pushes bored/lazy people away once they find out you can't right-click or something pfpf
Reply
:iconfrizzchan:
FrizzChan Featured By Owner Jan 26, 2014  Student Digital Artist
bless this jouranl
Reply
:iconnadopt:
NadopT Featured By Owner Jan 26, 2014  Hobbyist Digital Artist
AH DANG thank you so much for adding the bit about dragging, I was majorly concerned about that. 
Gotta add both to my weebly
Reply
:iconalpacasovereign:
alpacasovereign Featured By Owner Jan 26, 2014  Student Digital Artist
yEAH i wish i could find out how to disable key strokes but that's javascript and i have no experience with that shit whatsoever but it's a start at least
Reply
:iconyorkchop:
yorkchop Featured By Owner Jan 26, 2014
this is great, but i'd still suggest watermarks because right clicking isn't the only way they can take your designs. ;o;  if they're really determined, they can just screenshot the page or the art itself and save it that way.
Reply
:iconalpacasovereign:
alpacasovereign Featured By Owner Jan 26, 2014  Student Digital Artist
i also added on how to prevent people from dragging images into new tabs since that's how people could get the fullsizes too
Reply
:iconalpacasovereign:
alpacasovereign Featured By Owner Jan 26, 2014  Student Digital Artist
if people are smart, they won't leave the fullsize on their weeblies though uvu then you can tell when somethings stolen if it has quality loss
Reply
:iconyovth:
yovth Featured By Owner Jan 26, 2014
i dont have a weebly BUT THIS IS REALLY HELPFUL THANK U
Reply
Add a Comment: