1 >
返回列表 发新帖 回复

[功能建议] 能否防止自己原创的文章被别人抄走?

楼主
查看 993 回复 4| 发表于 2017-08-10 19:40:45

能否防止自己原创的文章被别人抄走?

沙发
发表于 2017-08-11 09:29:10

你去起点看了收费章节不能他的抄走吗?

板凳
发表于 2017-08-11 10:18:34

如果允许复制,那抄起来就太方便了。

最好要让抄袭者只能一个一个打字去抄,他们越觉得烦,抄的人就越少。

地板
发表于 2017-08-11 16:16:11

通过js完全可以实现。和起点一样的,禁止复制

5楼
发表于 2017-08-12 00:18:21

Prevent users from print chapter page. Add this style in <style> tag.

@media print {body {display: none;} .no-print {display:block!important;}}

----------------------

Prevent users from select text in chapter page. Add this style in <style> tag.

.noselect { -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }

Then add 'noselect' class to where you prevent select such as <div class="content"> change to <div class="content noselect">

----------------------

Disable CTRL + [C, V, U, S, P, X], CTRL + ALT + I, printscreen, prevent long-tap in touch screen devices and prevent right-click.

Add this javascript before </body> in {templates}/novel/read.html.

<script type='text/javascript'>

    $(window).on('keydown',function(event)

    {

    if(event.keyCode==123)

    {

        alert('Prohibited!');

        return false;

    }

else if(event.keyCode==93)

{

alert('Prohibited!');

return false;

}

    else if(event.ctrlKey && event.shiftKey && event.keyCode==73)

    {

        alert('Prohibited!')

        return false; 

    }

    else if(event.ctrlKey && ((event.keyCode==73) || (event.keyCode==85) || (event.keyCode==88) || (event.keyCode==67) || (event.keyCode==86) || (event.keyCode==2) || (event.keyCode==3) || (event.keyCode==123) || (event.keyCode==83) || (event.keyCode==80)))

    {

        alert('Prohibited!')

        return false;  

    }

});

$(window).on('keyup',function(event)

{

if(event.keyCode==44)

{

alert('Prohibited!');

return false;

}

else if ((event.shiftKey || event.ctrlKey) && event.keyCode==44)

{

alert('Prohibited!');

return false;

}

});

var isNS = (navigator.appName == "Netscape") ? 1 : 0;

if(navigator.appName == "Netscape") document.captureEvents(Event.MOUSEDOWN||Event.MOUSEUP);

function mischandler(){

alert('Prohibited!');

return false;

}

function mousehandler(e){

var myevent = (isNS) ? e : event;

var eventbutton = (isNS) ? myevent.which : myevent.button;

if((eventbutton==2)||(eventbutton==3)) return false;

}

document.oncontextmenu = mischandler;

document.onmousedown = mousehandler;

document.onmouseup = mousehandler;

function killCopy(e){

return false

}

function reEnable(){

return true

}

document.onselectstart=new Function ("return false")

if (window.sidebar){

document.onmousedown=killCopy

document.onclick=reEnable

}

</script>

<script type="text/script">

document.addEventListener('copy', function (evt) {

  console.log(evt.clipboardData.setData(''));

});

</script>


1 >
返回列表
您需要登录后才可以回帖 登录 | 注册