MasalaDesi


Go Back MasalaDesi > Backoffice > Help, Requests, Bug Reports, Complaints etc. > Java script for clicking on attach button many times

Reply
 
Thread Tools
Old 14th June 2017, 10:24 PM   #11
Suzane007
MD SuMo
 
Suzane007's Avatar
 
Join Date: 27th June 2011
Posts: 2,276
 
Quote:
Originally Posted by jaango123 View Post
Hi All,

How I use is like below.

1. Install the firefox addon 'greasemonkey'(This will let you run javascript code)
2. Now click on the greasemonkey icon at the top right of firefox and click new user script
<snip>...</snip>
Does it work in Firefox only?
Suzane007 is offline   Reply With Quote
Old 15th June 2017, 12:15 AM   #12
masalapoojai
 
masalapoojai's Avatar
 
Join Date: 4th February 2014
Posts: 891
 
^greasemonkey addon is there for chrome too, you should give a try, you can always disable or uninstall if u dont want that or find use of it
__________________
All my collection posted on xossip, follow this link to find more
xossip.com/search.php?do=process&showposts=0&starteronly=1&ex actname=1&searchuser=masalapoojai
masalapoojai is offline   Reply With Quote
Old 17th June 2017, 08:36 AM   #13
Suzane007
MD SuMo
 
Suzane007's Avatar
 
Join Date: 27th June 2011
Posts: 2,276
 
Quote:
Originally Posted by masalapoojai View Post
^greasemonkey addon is there for chrome too, you should give a try, you can always disable or uninstall if u dont want that or find use of it
Trying with Tampermonkey.

It's JS code so it should also work with tampermonkey.
Suzane007 is offline   Reply With Quote
Old 17th June 2017, 01:52 PM   #14
masalapoojai
 
masalapoojai's Avatar
 
Join Date: 4th February 2014
Posts: 891
 
Yes, give it a try, will work, if it is working, the job made very easy, saves at least 3-4 mins for many caps uploaders like me
__________________
All my collection posted on xossip, follow this link to find more
xossip.com/search.php?do=process&showposts=0&starteronly=1&ex actname=1&searchuser=masalapoojai
masalapoojai is offline   Reply With Quote
Old 20th June 2017, 10:52 PM   #15
jaango123
 
Join Date: 15th November 2016
Posts: 210
 
Quote:
Originally Posted by masalapoojai View Post
Yes, give it a try, will work, if it is working, the job made very easy, saves at least 3-4 mins for many caps uploaders like me
Thanks. Yeah it should work with tampermonkey as well as it is a javascript code
jaango123 is offline   Reply With Quote
Old 22nd June 2017, 05:43 PM   #16
scorsesem14
 
Join Date: 18th October 2015
Posts: 248
 
does this work on chrome as well?
scorsesem14 is offline   Reply With Quote
Old 22nd June 2017, 09:50 PM   #17
scorsesem14
 
Join Date: 18th October 2015
Posts: 248
 
Quote:
Originally Posted by scorsesem14 View Post
does this work on chrome as well?
works with tampermonkey on chrome thanks for the script
scorsesem14 is offline   Reply With Quote
Old 28th June 2017, 01:44 PM   #18
anutam123
 
anutam123's Avatar
 
Join Date: 29th December 2014
Posts: 630
 
Wow It Works with Tampermonkey Thanks for The Script Jaango123 bro and Suzane007 bro forPointing us in the right direction to make it work...
anutam123 is offline   Reply With Quote
Old 29th June 2017, 10:38 AM   #19
jaango123
 
Join Date: 15th November 2016
Posts: 210
 
Glad to help. Continue the good work
jaango123 is offline   Reply With Quote
Old 4th October 2017, 08:23 PM   #20
samrocker
 
Join Date: 10th February 2016
Posts: 2
 
Quote:
Originally Posted by jaango123 View Post
While posting a video, we have to click on 'Attach' button multiple times, to attach images to a post


use the below js code(in browser) to do this automatically on every page load, enjoy. This will click on all attach button one by one automated

var inputs = document.getElementsByTagName('input');
for (x = 0; x < inputs.length; x++) {
myname = inputs[x].getAttribute('name');
if (myname.indexOf('attach') == 0) {
document.getElementsByName(myname) [0].click();
}
}
for tampermonkey users a minor change

// ==UserScript==
// @name attach
// @namespace *url removed*
// @description Alert
// @include *
// @version 1
// @grant none
// ==/UserScript==
var inputs = document.getElementsByTagName('input');
for (x = 0; x < inputs.length; x++) {
myname = inputs[x].getAttribute('name');
if (myname.indexOf('attach') === 0) {
document.getElementsByName(myname) [0].click();
}
}
__________________
People are too lazy to click on images for all my future posts duration will be on thumbnails collage do click and check

Last edited by samrocker; 4th October 2017 at 09:05 PM.
samrocker is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +5.5. The time now is 07:08 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Page generated in 0.06204 seconds with 7 queries