Absolute Enable Right Click & Copy

Force Enable Right Click & Copy & Highlight

< 脚本Absolute Enable Right Click & Copy的反馈

提问/评论

§
发表于:2019-07-15

How to enable Absolute mode by default?

Hello! How to enable Absolute mode by default?

§
发表于:2019-07-15

Hi,

Enabling "Absolute Mode" by default will break a lot of sites don't have copy protection by default, like google maps, docs, etc.. That's why the developer didn't enable "Absolute Mode" by default.

However, you should enable "Absolute Mode" only on websites that require to force enable copy.

The developer already mentioned in the script description how to always enable "Absolute Mode" on specific websites.

Inside the script add the websites you want always use "Absolute Mode". In this line let sites = ['example.com','www.example.com'];

    function alwaysAbsoluteMode() {
        let sites = ['example.com','www.example.com'];
        const list = RegExp(sites.join('|')).exec(location.hostname);
        return list ? absoluteMode() : null;
    }

I hope this's helpful.

发表回复

登录以发表回复。