MasalaDesi


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

Reply
 
Thread Tools
Old 10th October 2017, 06:41 PM   #21
jaango123
 
Join Date: 15th November 2016
Posts: 210
 
Quote:
Originally Posted by samrocker View Post
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();
}
}


Thanks bro.... In the javascript world always use === and !== - which you did rightly.
__________________
PM me for FILESFLASH PREMIUM account sale

Last edited by jaango123; 10th October 2017 at 06:41 PM.
jaango123 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:07 AM.


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