MasalaDesi


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

Reply
 
Thread Tools
Old 19th April 2017, 01:16 PM   #1
jaango123
 
Join Date: 15th November 2016
Posts: 211
 
Java script for clicking on attach button many times

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();
}
}

Last edited by jaango123; 19th April 2017 at 01:19 PM.
jaango123 is offline   Reply With Quote
Old 7th May 2017, 09:01 PM   #2
Didarrius
 
Didarrius's Avatar
 
Join Date: 4th September 2010
Posts: 566
 
Good Job!!

This is Super Helpful..Especially for people who upload tons of caps...

@Mods: Can we please make this a sticky thread and share with all members...


__________________
Mega Collection of Best Savdhaan India, Gumrah Videos, Visit Threads Started by Me for More... : masaladesi.com/search.php?do=finduser&u=1515774&starteronly=1
Mia Khalifa Examining Black Dick vs White Dick, Comparing Length,Weight,Amount of Cum:
masaladesi.com/showthread.php?t=342869
New Mia Khalifa Sex Tape :
masaladesi.com/showthread.php?t=373272


Didarrius is offline   Reply With Quote
Old 25th May 2017, 05:51 PM   #3
scorsesem14
 
Join Date: 18th October 2015
Posts: 260
 
how do i use this?
scorsesem14 is offline   Reply With Quote
Old 25th May 2017, 06:08 PM   #4
anutam123
 
anutam123's Avatar
 
Join Date: 29th December 2014
Posts: 634
 
Bro, Can u explain in Detail????This will be very helpful ....
anutam123 is online now   Reply With Quote
Old 26th May 2017, 01:58 AM   #5
digitx
 
Join Date: 16th February 2008
Posts: 78
 
Quote:
Originally Posted by scorsesem14 View Post
how do i use this?
I think you have to copy that js code and paste into address bar.

Last edited by digitx; 26th May 2017 at 01:58 AM.
digitx is offline   Reply With Quote
Old 26th May 2017, 11:45 AM   #6
scorsesem14
 
Join Date: 18th October 2015
Posts: 260
 
Quote:
Originally Posted by digitx View Post
I think you have to copy that js code and paste into address bar.
tried but that doesnt work as the new tab from where we attach/detach the caps doesnt let us modify it
scorsesem14 is offline   Reply With Quote
Old 26th May 2017, 11:51 AM   #7
jaango123
 
Join Date: 15th November 2016
Posts: 211
 
Quote:
Originally Posted by scorsesem14 View Post
tried but that doesnt work as the new tab from where we attach/detach the caps doesnt let us modify it

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
3.Paste the below - dont change anything
// ==UserScript==
// @name Hello World
// @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();
}
}
4. Done. Now whenever you click on Manage attachments, this will work as a for loop for all the 'Attach' buttons.

5. Let me know if there is any problems.

BTW there is another method to upload images in bulk in no time to Masaladesi. I will post that as a separate thread as it involves a lot of steps and also some testing is pending
jaango123 is offline   Reply With Quote
Old 26th May 2017, 11:59 AM   #8
jaango123
 
Join Date: 15th November 2016
Posts: 211
 
Also to upload multiple images in bulk, I see a Windows MD application already available. I have never used it because I am on Linux

I do not know if that application will allow you to upload images in bulk.
jaango123 is offline   Reply With Quote
Old 30th May 2017, 06:59 PM   #9
scorsesem14
 
Join Date: 18th October 2015
Posts: 260
 
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
3.Paste the below - dont change anything
// ==UserScript==
// @name Hello World
// @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();
}
}
4. Done. Now whenever you click on Manage attachments, this will work as a for loop for all the 'Attach' buttons.

5. Let me know if there is any problems.

BTW there is another method to upload images in bulk in no time to Masaladesi. I will post that as a separate thread as it involves a lot of steps and also some testing is pending
maybe i am doing something wrong but this didnt work for me
scorsesem14 is offline   Reply With Quote
Old 14th June 2017, 09:47 PM   #10
masalapoojai
 
masalapoojai's Avatar
 
Join Date: 4th February 2014
Posts: 895
 
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
3.Paste the below - dont change anything
// ==UserScript==
// @name Hello World
// @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();
}
}
4. Done. Now whenever you click on Manage attachments, this will work as a for loop for all the 'Attach' buttons.

5. Let me know if there is any problems.

BTW there is another method to upload images in bulk in no time to Masaladesi. I will post that as a separate thread as it involves a lot of steps and also some testing is pending
This worked like a charm, thanks a lot for sharing

Install greasemonkey and restart FF, but slight change in point number 2 instruction - copy the script given in red below and click new user script and in that little window at the bottom u can see - use script from the clipboard - click that button and its done.. now it will work, now whenever u click manage attachments, it will attach automatically


// ==UserScript==
// @name Hello World
// @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();
}
}
__________________
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
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 12:49 AM.


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