[Questions] Window title! + couple extras
See original GitHub issueFirstly. I would really love to have the script get access to the window title! “Imgur | The Magic of the Internet” … for example
Are there docs I could research this stuff? window.crmAPI.GM.GM_setClipboard(location.href); This is a beautiful example that got me the address of the current image instead of the link the image points to and you showed us how to put variables in the clipboard which is AMAZING! But I could stay out of your hair maybe these are just regular google chrome code that I could read about somewhere?
[LONGSHOT Last Question]
I am sending parameters to a program using 3 underscores as a delimiter.
window.open(media://${crmAPI.contextData.target.src}___${location.href}
, ‘_blank’);
I have my registry set to pass “%1”
Is there a way actually to pass them separately so they arrive to my program more safely.
???Possibly I would add %2 under the registry and then change ‘_blank’ in that line? Or add something else?
Is this possible?
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Top Ten Questions To Ask Your Window & Door Salesperson
9: Can you tell me about your installers? Are they using employees or are they using sub-contractors? Are they certified to do this...
Read more >Fix Excel Conditional Formatting Problem Extra Rules
Fix Excel conditional formatting problems when extra rules are automatically created. How to remove duplicate rules and prevent them from ...
Read more >Interaction: alert, prompt, confirm
The function confirm shows a modal window with a question and two buttons: OK and Cancel. The result is true if OK is...
Read more >Find more shapes and stencils - Microsoft Support
If you need more shapes than a particular Visio template provides, you have a couple of options, depending on which version of Visio...
Read more >Right-clicking on the title bar of a window shows extra options ...
Right-clicking on the title bar of a window shows extra options, but how can you see these options for windows that don't have...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Okay sorry. I figured some of that out last night but forgot to post back. I really appreciate it. Obviously early on everything is quite exciting and you learn a lot very fast. I try not to bug you too much. Thank you for your clarification.
I have twitter storing their @handles_image48756.jpg automatically now and fixed a lot of website downloads by finding referrer URL and passing it to the CURL request. Might figure out how to feed that cookie too 😛 lol If you know how and what I mean
Answering your first question, you can just use
document.title
.2nd question: Luckily this is indeed just regular javascript, so just reading up on javascript will teach you a lot of this stuff. W3schools is a decent resource for getting into the basics, but there’s probably lots of resources around the internet. Stuff that’s got
crmAPI
in it is generally exclusive to this extension (so there won’t be any resources on it), but any javascript code will run in this extension as well.3rd question: I’m not entirely sure, but I’m pretty sure you can just add
%2
in the registry (like you suggested) and pass the second parameter either after a space (sowindow.open(`media://${crmAPI.contextData.target.src}___${location.href} ${nextArgument}`, '_blank');
) or a comma (sowindow.open(`media://${crmAPI.contextData.target.src}___${location.href},${nextArgument}`, '_blank');
). Not 100% sure but one of these might work. If that doesn’t work, check out this section of the wiki. Using the python script you can customize the parameters it passes a bit more easily.Let me know if you have any more questions, I could imagine the last question one is a bit hard to get working.