Jump to content
UBot Underground

Insert Text In List


Recommended Posts

Hello everyone, its my first post and im happy to be a part of this community.

 

I have an issue inserting a part of text in list of hrefs( in front of every href, whole item should be a string).

In debugger i see every href is its own item, but when i want to add part of text in front,

next item list just goes to the next character. How can i fix this? Also the items in debugger even after execution of this line still stays same, so the insertion obviously doesnt work,

but the alert part shows the insertion.

Where is the problem?

 

clear list(%mylist)
add list to list(%mylist,$scrape attribute(<href=r"/.*if">,"href"),"Delete","Global")
set list position(%mylist,0)
loop($list total(%mylist)) {
    alert("{$insert text(%mylist,"http://something",$list position(%mylist))}{$next list item(%mylist)}")
}

Link to post
Share on other sites

I solved the issue. Used replace list item and inside used just replace( basically edited the existing text ).

Thank you for help, it was the right way but need to work on it :)

Edited by slobib
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...