Is it possible to disable Ctrl + F of find in page?

后端 未结 9 1356
夕颜
夕颜 2020-12-01 12:39

I have a puzzle site and its an awful way of cheating. Its okay if only partially, but can it be done?
Something I had in mind was replacing the letters with images, but

9条回答
  •  执念已碎
    2020-12-01 12:56

    Rather than disable the Find function, you could make it so that Find won't find the words! One way to do this would be to use the CSS content declaration to inject the words. Find won't find them:

    .word-foobar:before { content: "Foobar"; }

    You could quite easily write some Javascript to automatically generate all the necessary CSS rules for you, too.

提交回复
热议问题