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.

發表回覆

登入以回復