Giter Site home page Giter Site logo

sanderronde / customrightclickmenu Goto Github PK

View Code? Open in Web Editor NEW
208.0 208.0 33.0 28.25 MB

A browser extension to add links and run scripts/stylesheets all from your right-click menu

Home Page: https://chrome.google.com/webstore/detail/custom-right-click-menu/onnbmgmepodkilcbdodhfepllfmafmlj

License: MIT License

CSS 3.51% HTML 7.94% JavaScript 13.48% Shell 0.30% TypeScript 74.78%
chrome chrome-extension context-menu css javascript userscripts userstyles

customrightclickmenu's Issues

Unclear how to share code in scripts

Hi Sander,

I want to share a function between scripts. For example in the image below, I want all context menu options to share and run the addLink function. Currently I'm resorting to localStorage to keep the addLink function as string, and eval it to declare.

custom-context

Thanks for the extension!
Robin

How to get highlighted text?

Hi I add 'script' menu only when text is highlighted. then how do we get that highlisgted text via javascript?

Newly created Menues

Hello Sander,

thank you very much for the new version 2.2.6. Drag & Drag works now almost perfect. However, I found 2 Issues:

  1. Can't select newly created menus in oder to move items into them.
  2. In some case the menus appears twice. Trying to remove one, removes also the other.

Best
Thomas

The window.getSelection() is not working for the selected text in webpage for searching.

I test this code but the window.getSelection() is not working for the selected text in webpage for searching. How to fix it?

I check out that /*execute locally*/ only makes query = linkurl works but window.getSelection() not.
Thanks.

/*execute locally*/
var query = linkurl || window.getSelection() ;
if (query != '') {
var url = "http://sci.abc/??check=true&request=%s";
  window.open(url.replace(/%s/g,query), '_blank');
}
else {
  window.open("http://sci.abc/", '_blank');
}

Question: Possible to use the context menu to execute a keyboard shortcut?

Is it possible to use the context menu to execute a keyboard shortcut? Because I'm using an external (VoIP) application where I can select a phone number and then start calling through pushing a keyboard shortcut. I'd like to map this keyboard shortcut to the context menu for ease of access for myself and others.

Disabling handling of userscript installs

Can I disable it handling the installation of Greasy Fork userscript installs? I tried the global excludes section but it doesn't even keep the setting. On refresh it's gone.

Cannot click hold to move items

New user here, thanks for working on this

When I followed the instruction "Click and hold the three stripes () to drag the nodes", it highlighted the current node, but it won't move.

"Also somehow related, is it possible to create / move a node to root? Same level as "Custom Menu"

Is this extension support url like file:///

Hi,

I'm using the extension and it works well for images on internet, but there seems no effect on local images? I need the file path for local images like "file:///path/to/image.jpg" #

How to use 'instead of http:// use yourscheme:// as a link.'

Hi, I generate a URI pair with clicking the generate button and get a text file downloaded.

Then I change it to .reg file and run it.

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\BandicamPortable]
@="URL:BandicamPortable Protocol"
"URL Protocol"=""

[HKEY_CLASSES_ROOT\BandicamPortable\shell]

[HKEY_CLASSES_ROOT\BandicamPortable\shell\open]

[HKEY_CLASSES_ROOT\BandicamPortable\shell\open\command]
@="\"D:\\greensoft\\BandicamPortable\\BandicamPortable.exe\""

What should I do now?

To add a link to the CustomRightClickMenu plugin?

qq 20170509233112

But the Chrome just download this .exe file when I right click it, instead of running the program.

crmapi storage cant work on different script?

I have 2 script:

//Script 1: Copy
var value = getSelection().toString();
crmAPI.storage.set("textSelection", value);
//console.log( crmAPI.storage.get("textSelection") ); //it shows the data!

//Script 2: Paste
console.log( crmAPI.storage.get("textSelection") ); //it shows "undefined"

Why crmAPI.storage.get doesnt work cross script? if i put crmAPI.storage.get in the same script as crmAPI.storage.set , it will work

How can I use Greasemonkey functions to copy some modified from the selected text?

image

I try to do this way but failed.

What I wanna to is select text such as

we have recently completed depicting the #COVID2019 #Coronavirus at the centre of the

from the webpage, and CopyMine will le me get a clipboard content of

we have recently completed depicting the COVID2019 Coronavirus at the centre of the

just remove some characters I don't want!.

How do you delete a menu item?

Hey man,

Nice project, very handy!

I've got an annoying little problem. I cannot find out how to delete a menu item. How can you delete a menu item?

Thanks brother

Screen Shot 2019-09-15 at 22 22 07

Templates for inputs

Greetings!

Is there any way to create some kind of short templates for answer?

For example, i have some chat in facebook and instead of writing answers for my collocutor's questions i'll click on some prepared answers and your extention will append it to the focused textarea?

Thanks for your extension!

How to store data?

Hello, I cant find any tutorial to use CRM.

If I already get data that i want via getSelection() and then where we can store the data? So we can use it later.

Cannot Import anything

It hasn't been functioning for me at all. It worked before, but it randomly stopped. Reinstalling the extension doesn't work either.

I paste my code, click "Import" (overwrite option selected), and I don't get a message saying the code has been imported. When I access the custom menu, I only see "options".

Unable to select nodes

To export / delete nodes we need to select a series of nodes currently unable to do so

About right click and get anchor href send to context menu variable.

Hello I'm fresh to use this Chrome extension.

I try to write script for some function I want to specify on a site search query.

var query = window.getSelection();
if (query != '') {
var url = "http://sci.abc/??check=true&request=%s";
window.open(url.replace(/%s/g,query), '_blank');
}
else {
window.open("http://sci.abc/", '_blank');
}

But I don't know how to detect the href of the anchor link if I try to select the text with link inside. I want to send the href to query if the mouse is over or right click on the text with <a>

Could you help? Thanks!

Stylesheets for select sites not working

I went ahead & installed it & it worked until I tried to add a stylesheet for an individual site. I had 3 stylesheets, a black theme, a white theme, & a grey theme. Once I added the custom style (for duckduckgo) it only shows the black theme. I tried just deleting that entry but it didn't fix it. fortunately I had exported the config before adding the site style so I imported that & the other scripts came back.

Extension removed from chrome web store

On the 1st of august, google decided to remove the extension from the chrome web store for being "malicious", along with my developer account. There is absolutely nothing malicious happening in the extension, which is why I am very much surprised by this happening. It seems like some automated system took it down, seeing as it's happened before to another app of mine and ever since every single update I make is under review, with no explanation except for copy-pasted text.

I have sent an email trying to get it reinstated, but seeing as this far talking to them has been like talking to a brick wall, I am very worried about getting it reinstated. I'll try to keep everyone who is confused about the extension suddenly disappearing updated in this thread.

Options fail to load - Firefox 61.0b11

Hitting F12 shows two errors:

TypeError: menuBrowserAPI is undefined ... options.js:162:9592
TypeError: browserAPI is undefined ... options.ja:154:1734

URI parameters

Can we parse parameters to URI's?
In general the use of parameters ( for example link context menu etc ) is unclear.
You use %s in your presets for search engines.

GM_xmlhttpRequest not working

My script worked well couple weeks ago.
But today I got this error

Uncaught TypeError: Cannot read property '_setupRequestEvent' of undefined

on GM_xmlhttpRequest sending a request

Question: how to add script to menu item name

Brand new to the extension. It appears to work with the Install Chrome Extensions Addon for Opera. But, don't get hung up on that. Don't worry about the fact that I'm doing this in Opera.

What I'm trying to do is duplicate Chrome's native "Go to %s" where %s is selected text that's not hyperlinked.

EDIT:
Nevermind Go to %s worked. I need to learn more about the code.

Here's my duplicate of the Chrome function

var query;
var url = "%s";
if (crmAPI.getSelection()) {
	query = crmAPI.getSelection();
} else {
	query = window.prompt('Please select some text');
}
if (query) {
	window.open(url.replace(/%s/g,query), '_blank');
}

Crash while configuring menu

The "config page(?)" crashes while I'm trying to configure it. I managed to add one menu with 3 items, When I try to add more than that the page crashes & I have to reload the page. This has happened several times. I haven't installed it yet, & that makes me have second thoughts about installing it. On top of that it's very unclear exactly how to use it. For example how to add something to a secondary menu vs the main menu. Is that going to continue if I install it, because if so I'll be uninstalling it immediately & giving it a bad review. I don't mean to be harsh, but when I haven't even installed & I'm already seeing crashes It doesn't instill to much confidence that it won't be even worse if I install it.

Logo Proporsal

Hi @SanderRonde

My name is Ulises or TJ if you like,
i'm a graphic designer and I contribute to cool projects (open source) like this one!
if this is something that you're looking forward to, I'll gladly upload some logo proposals

I'll look forward for your reply, cheers!

TJ.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.