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

Thread Tools
Old 10th October 2017, 06:41 PM   #21
Join Date: 15th November 2016
Posts: 285
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

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 03:32 PM.

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