Right click to ImageShack extension?
-
- Posts: 13
- Joined: April 18th, 2005, 6:41 pm
Right click to ImageShack extension?
Is there an extension that adds an option to the context menu of images to upload directly to ImageShack? If not, somebody should make one, that'd be neat.
- CPU
- Posts: 624
- Joined: August 13th, 2004, 4:22 pm
- Location: Houston, Texas
- Contact:
-
- Posts: 2254
- Joined: June 13th, 2003, 5:17 am
- Location: Japan
It might be possible to modify the javascript of that transloader bookmarklet to work with the custom script handler of Context Menu Extensions. That would make it available through the context menu.
Don't ask me how to do it though. I don't know anything about javascript.
If you can't get that to work, then as a workaround, right-click on the image you want to upload and choose "view image" to load it in the page alone. Then you can run the bookmarklet and it shouldn't get confused.
Don't ask me how to do it though. I don't know anything about javascript.
If you can't get that to work, then as a workaround, right-click on the image you want to upload and choose "view image" to load it in the page alone. Then you can run the bookmarklet and it shouldn't get confused.
-
- Posts: 6
- Joined: February 11th, 2005, 9:03 pm
I don't know how to do the context menu part of this but
should work.
Code: Select all
javascript:document.write("<form name=\"f\" action=\"http://imageshack.us/transload.php\" method=\"post\">
<input type=\"hidden\" name=\"url\">");
</form>
document.f.url=url_to_be_uploaded;
should work.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050908 Firefox/1.4
The best things in life are free.
The best things in life are free.
-
- Posts: 63
- Joined: September 29th, 2003, 6:59 am
- Location: Moscow, Russia
- Contact:
Give a try to ConQuery with this query plugin:
Place the code above to the c:\Prgram Files\Mozilla Firefox\searchplugins\ directory to the file named imageshack.cqr an it will appear under "Query to..". Right click on image and send it to ImageShack.
The following query plugin you may even hide from context menu and it will appear only if it feels that you right clicked on some image:
For more info read documentation
Code: Select all
<search
name="Upload to ImageShack"
description="This sends link of targeted image to ImageShack"
method="POST"
action="http://imageshack.us/transload.php"
>
<input name="url" value="[:imgurl]">
</search>
Place the code above to the c:\Prgram Files\Mozilla Firefox\searchplugins\ directory to the file named imageshack.cqr an it will appear under "Query to..". Right click on image and send it to ImageShack.
The following query plugin you may even hide from context menu and it will appear only if it feels that you right clicked on some image:
Code: Select all
<search
name="Upload to ImageShack"
description="This sends link of targeted image to ImageShack"
method="POST"
action="http://imageshack.us/transload.php"
showiftarget="[:imgurl]"
showif=".+"
>
<input name="url" value="[:imgurl]">
</search>
For more info read documentation
<a href="http://conquery.mozdev.org">ConQuery</a>: Right-click the Web!
-
- Posts: 63
- Joined: September 29th, 2003, 6:59 am
- Location: Moscow, Russia
- Contact:
Sure!
1. you can reorder this s.plug to the top of plugin's list, and set "Number of top ordered plugins to show in main context menu" option to 1 (or whaterver above 0) or:
2. If you are using that second plugin (with "showif" parameter), you can hide it from list and set ConQuery option "Show context sensitive plugins in the main context menu" to true. Well this is better because "Upload to ImageShack" entry will come up only when you click on an image.
And after all you can hide "Query to.." entry itself..
Enjoy!
1. you can reorder this s.plug to the top of plugin's list, and set "Number of top ordered plugins to show in main context menu" option to 1 (or whaterver above 0) or:
2. If you are using that second plugin (with "showif" parameter), you can hide it from list and set ConQuery option "Show context sensitive plugins in the main context menu" to true. Well this is better because "Upload to ImageShack" entry will come up only when you click on an image.
And after all you can hide "Query to.." entry itself..
Enjoy!
<a href="http://conquery.mozdev.org">ConQuery</a>: Right-click the Web!
-
- Posts: 42
- Joined: November 28th, 2004, 1:25 pm
- Location: 127.0.0.1
EDIT: realised my mistake after reading the folllowing here
showif="regexp" - evaluates selection with regexp. Results are saved in [:matched] variable(see above). If plugin is hidden from context menu and regexp matched selected text, plugin will be shown.
-
- Posts: 42
- Joined: November 28th, 2004, 1:25 pm
- Location: 127.0.0.1
This inspired me to make a fully fledged extension. It might be easier to setup than the method above and doesn't require the bloat of the ConQuery extension.
Grab it [link removed] if you want.
This is my first extension so we'll see how it goes. Let me know of any bugs you come across or if you have any comments.
Grab it [link removed] if you want.
This is my first extension so we'll see how it goes. Let me know of any bugs you come across or if you have any comments.
Last edited by cheesypeanut on January 4th, 2011, 7:31 pm, edited 2 times in total.
- thenightfly42
- Posts: 983
- Joined: November 5th, 2002, 8:03 am