Absolute Enable Right Click & Copy

Force Enable Right Click & Copy & Highlight

< Feedback on Absolute Enable Right Click & Copy

Review: OK - script works, but has bugs

§
Posted: 2018-02-15

This needs an option to disable right click manipulation Firefox has it by default

Hi!

Since I can show the browser context menu by pressing shift+click I don't need this constantly enabled because it interferes with a bunch of websites. It'd be nice this could be disabled. Copying text however doesn't cause issues, so I'd like to have it enabled constantly.

AbsoluteAuthor
§
Posted: 2018-02-16

Hi,

Please read the script description this script made specifically For Google Chrome
Also, this script made in a way, don't effect on the website as possible in normal mode.

If you are interested, maybe this what you want
https://addons.mozilla.org/en-US/firefox/addon/absolute-enable-right-click

It will be nice if you paste these websites which it affected.

§
Posted: 2018-02-16
Edited: 2018-02-16
Hi,

Please read the script description this script made specifically For Google Chrome
Also, this script made in a way, don't effect on the website as possible in normal mode.

Well, it works fine outside the context menu issue. A function I don't need anway.
I noticed for example on google maps that I get both context menus atop each other.


If you are interested, maybe this what you want
https://addons.mozilla.org/en-US/firefox/addon/absolute-enable-right-click

I'll try it, but I don't see any preference here either to disable the context menu stuff.

Also, it looks like I have to enable it for every website separately. Which makes it not all that useful.

AbsoluteAuthor
§
Posted: 2018-02-16

I'm pretty sure this script doesn't run on google maps because I'm already exclude google.

You can remove these lines.

// @include    http://*
// @include    https://*

And replace it with a site you want only run on it, like this.

// @include https://example.com/*
// @include https://www.myexample.com/*
// @include https://anysite.com/*

etc...

Last version 1.4.9

§
Posted: 2018-02-16

You can remove these lines.

// @include    http://*
// @include    https://*
And replace it with a site you want only run on it, like this.
// @include https://example.com/*
// @include https://www.myexample.com/*
// @include https://anysite.com/*
etc... Last version 1.4.9

Thanks, but this is the opposite of what I want. I want it to run on every site, but I want to disable the problematic/superfluous context menu part of it and keep text copying. What do I need to remove for this?

I'm pretty sure this script doesn't run on google maps because I'm already exclude google.

Doesn't seem like it to me. The string "map" is not present anywhere in the script, and the script in fact runs on google maps.

AbsoluteAuthor
§
Posted: 2018-02-16

It's not necessary "maps" be there.
Since I exclude Google.

// @Exclude   /.(/(^drive|w+|docs|translate).google.[a-z]

Any string after google.[a-z] will be excluded.
For Google maps will exclude.

https://www.google.com/maps

Maybe because you have an old version of this script.
Make sure you have last version 1.4.9

AbsoluteAuthor
§
Posted: 2018-02-16

Actually, UserScript not really powerful like extension, especially in this category "Enable Copy".
You should rely on extension.

That's why I have my own extension for Google Chrome on Firefox.
Although I'm using Google Chrome all the time, rarely I use Firefox.

§
Posted: 2018-02-16
Maybe because you have an old version of this script. Make sure you have last version 1.4.9
I am using the latest. Nonetheless, google maps is not excluded.
Actually, UserScript not really powerful like extension, especially in this category "Enable Copy". You should rely on extension.

That's why I have my own extension for Google Chrome on Firefox. Although I'm using Google Chrome all the time, rarely I use Firefox.

But I can't have the extension enabled by default, which makes it a nuisance to use. (Apart from the context menu stuff.)

AbsoluteAuthor
§
Posted: 2018-02-16

I'm not sure how and why Google maps is not excluded, but the only think I can think about it you are using Greasemonkey and Firefox.

But this script compatible with Google Chrome & Tampermonkey, and I only test on Google Chrome and Tampermonkey.
Maybe you need to try it on Google Chrome & Tampermonkey and see if Google maps excluded.

Also, exactly the contrary, the developers does not enable by default the extension which it can break the functionality of websites.

§
Posted: 2018-05-07

I was going to make a separate discussion about this, but it seems relevant to this. I was testing it out on Facebook, and even though it's supposed to be disabled on Facebook, it was still breaking the site whenever I tried to paste into chat. I removed the // before @Exclude in the script and that fixed it. This makes sense, considering / comments out the line. So I'm confused by them (the //) being there, and why even in your comments here you mention them. What's the deal here? Should I not be removing the slashes? Or should they not be there at all?

Also, is there any possibility of adding the ability for the script to adjust the setting of dom.event.clipboardevents.enabled? I like to set it to false, but it breaks certain sites, such as Facebook and Drive, so I'm looking for a way to exclude certain sites, where it would be set to true, like this script does for the right-click and copy functionality.

AbsoluteAuthor
§
Posted: 2018-05-07

I just want to say this script made specifically For "Google Chrome" and I already mentioned that in the script compatibility and the description.

This script only for Google Chrome & Tampermonkey. Unfortunately no one read the script description and compatibility.

For me the Facebook excluded. and the script work as expected in Google Chrome, and I don't care about other browsers.
About you questions.

You should not remove the slashes.

The whole idea behind // it to comment, like what this line of function will do or just add a description or something, it's like a reminder.

In programing language, means anything after // will ignored (it's not a code line)

For examle:

// store it all in window.name, this will remain even if the site is redirected
window.name = "CC_pending_ntr:" + _main(JSON.stringify(data));

In UserScript, the script manager, how it determines the information about the script? it use @ e.g @name

// ==UserScript==
// @name New Userscript
// @version 0.1
// @include *://*
// ==/UserScript==

Script manager will read anything between ==UserScript== as information on condition that it contains @

If you remove // from the eg @name you will get error Syntax Error: Invalid or unexpected token and the script will not work.

Because: // @name will be ignored . @name will not ignored and it will read as a code line, and you will get an error because it's not a valid line of code.

The real reason why when you removed // as you said it work, because the whole of the script became not valid.

Try to add this line.

// @exclude  https://www.facebook.com/*
AbsoluteAuthor
§
Posted: 2018-05-07
Edited: 2018-05-07

Eventually, everything about @exclude thing.

@exclude only built-in Tampermonkey, and not available in other script manager. Probably i will add an exclude method in the next version.

§
Posted: 2018-05-07

@Absolute said: I just want to say this script made specifically For "Google Chrome" and I already mentioned that in the script compatibility and the description.

This script only for Google Chrome & Tampermonkey. Unfortunately no one read the script description and compatibility.

Well, it still would be nice to have an easy way to disable the rightclick manipulation. I think even on Chrome some people might want one but not the other. (for me only the text selection/copying is interesting)

Post reply

Sign in to post a reply.