-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Questions] Window title! + couple extras #59
Comments
Answering your first question, you can just use 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 3rd question: I'm not entirely sure, but I'm pretty sure you can just add Let me know if you have any more questions, I could imagine the last question one is a bit hard to get working. |
Yeah I tried a couple syntaxes. The first one I tried already like you said that seemed it might work was spaces. window.open( Closing quotes sooner These last 2 actually crashed the whole extension it seems lol |
But I can see you are just using "/" as delimiter which is fine. I'm good to go in that regard. I'll have to write a javascript now to find like the artist for example on a pixiv illustration. And then send it along to be stored as METADATA. This is gonna organize so much. https://www.pixiv.net/en/artworks/91575168 This is a perfect example of something quite easy to do with javascript right? It can search through entire HTML and so forth and pull bits of data like that? |
Good to hear it worked. Yep you're right, that's something that javascript is perfect for. |
I'm figuring it out. Pretty great. |
@SanderRonde const matches = document.querySelectorAll(); var nodeList = document.getElementsByTagName(); var list = document.getElementsByClassName(); ========================================================== for (const prop in crmAPI) { |
They each require an argument to be passed. For example The best course of action for then finding a single element (like the author's name you mentioned before) on a webpage is to open the developer tools, find the element that contains the author's name, get its ID or class and use
No that will just show you all functions and properties that the
First of all I'd recommend replacing See this page for more info on how the console and stuf works |
Okay sorry. I figured some of that out last night but forgot to post back. 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 :P lol |
Firstly. 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?
The text was updated successfully, but these errors were encountered: