jswanner / DontF-WithPaste

Google Chrome extension that prevents the blocking of pasting into input fields
https://chrome.google.com/webstore/detail/dont-fuck-with-paste/nkgllhigpcljnhoakjkgaieabnkmgdkb
MIT License
818 stars 66 forks source link

Found a website that still won't let me copy #106

Closed pogue closed 1 year ago

pogue commented 3 years ago

The site is https://easyinfoblog.com and I'm not sure what kind of sorcery they're using to prevent highlighting and copying, but it won't allow you to do that. I tried blocking Javascript, but it prevented the page from loading.

Here's the page I was reading: https://easyinfoblog.com/technology/rip-amazon-prime-video/#6_Ways_to_rip_Amazon_Prime_Video_2020

Here's a pastebin of the source of the site: https://pastebin.com/mqdAWm5G

I'm running Don't Fuck With Paste version 2.7 on Opera x64 Version:73.0.3856.257. If you need any details about any other extensions I'm using, let me know. I also tried this in the latest Chrome with the same DFWP version and it didn't work either.

Thanks! pogue

jswanner commented 3 years ago

@pogue,

It seems they are not actually intercepting copy browser events, instead they are preventing the selection of text using:

*:not(input):not(textarea)::selection {
    background-color: transparent !important;
    color: inherit !important;
}

*:not(input):not(textarea)::-moz-selection {
    background-color: transparent !important;
    color: inherit !important;
}

They might also be intercepting the keyboard shortcut key events associated with copying as well.

This extension circumvents the most straight-forward approaches a website author can take to prevent copy, cut, and paste functionality. This extension does not try to circumvent all means by which a website author can take to prevent that functionality, partly because there are so many ways in which a website author can try to prevent those actions but also because this extension could end up causing more harm to your browsing experience if it did try to circumvent all the possible ways. Additionally, this extension generally allows for some workarounds for copy, cut, and paste when active event if keyboard shortcuts don't work (such as through right click or Edit menu).

I know it's frustrating when a website interferes with normal browsing behavior, and this extension tries to make things a little better. I don't think it's appropriate for this extension to circumvent what that site is doing, I think you'd be better off using something like User CSS to address this problem.

pogue commented 3 years ago

Thanks for the prompt response, I appreciate it. I can understand you don't want to make your extension block every kind of copy and paste blocker, but that was what I was under the impression that DFWP was intended to do.

User CSS looks like a good extension, unfortunately I'm not CSS literate so I would have no idea what I'm looking for, and I'm just trying to copy and paste stuff from the page so I can search it in Google. Luckily Opera lets you click on a word and it prompts you to search for it, but the inability to highlight stuff is just annoying.

I was hoping DFWP was an all in one destroyer of anything and everything that tries to stop copy/paste, but I can understand that's not it's intention.

Anyway, I just thought I would bring that to your attention, but I'll have to find a workaround. It's not a huge deal, that's really one of the only pages I've come across that didn't allow copy/paste with all the extensions I used so I was really surprised.

But, thanks again! pogue