Skip to content
TORNLIFE More

Quick dump search

Started by iron [2428902] on in Tools & Userscripts.

14 replies · 1.25k views · thread synced · 8 days ago · View on torn.com
About this thread

Posts archived: 15 / 15 posts (100%) · the total is Torn's reply count + the opening post at the last fetch

Counted by TornLife from the archived posts.

Archived posts
15
Discussion span
→
People posting
12
Likes on archived posts
17
Posts by staff, officers and moderators
1
Authority score
57 / 100
Historical score
28 / 100
Story score
46 / 100
Engagement score
65 / 100

Most-liked replies

iron [2428902]
Can someone make this (surely it’s legal)?
or if it’s already been made link me up… otherwise I might make it myself if I get around to it
ThunderBlitz [2684774]
I imagine that one of the scripts made to open Supply Packs quickly, could be adapted to do this, maybe? :-/

I'm not a coder, so it could be much more complex than how it seems, as they're on 2 different pages but, it just seems logical, since the animation in both cases is what eats up those extra seconds.....


This one seems to be fairly well maintained, could be a good starting point (if it's even possible to adapt it for this).

Mentions: [Script] [+PDA] Open your supply packs faster

ThunderBlitz [2684774]
The problem with doing that (refreshing the page during the animation), is that you automatically 'pick up' the item, whatever it is, which is fine for newer players as everything is money X-D but, after a few years, many of us don't want anymore bricks, bunches of flowers or (ugh) jackets. Having to go into your inventory, then manually dump the unwanted items, is even more tedious than waiting for the animation, then just hitting 'toss'.

There may also be other implications, for those whose inventory is full. Those hoarders may automatically just toss the item when refreshing the page, maybe losing out on something valuable (I'm guessing, I don't have much stuff :-( ).
Kwack [2190604]
Likely not a difficult script to build.

Start search: https://www.torn.com/dump.php?step=search&rfcv=
Pickup item: https://www.torn.com/dump.php?step=pickUp&rfcv=
Toss item: https://www.torn.com/dump.php?step=toss&rfcv=

Potentially easiest way of getting rfcv - intercept initial request and grab it. Should be very basic after that. May be something easier but I haven't looked into it properly.
flare [2195157] Officer Officer
You can actually just grab the rfcv from cookies

// Function to extract the 'rfc_v' token from the page's cookies
function getRfcVToken() {
const cookieString = document;
const cookieArray = cookieString.split('; ');

for (const cookie of cookieArray) {
const [cookieName, cookieValue] = cookie.split('=');
if (cookieName === 'rfc_v') {
return cookieValue;
}
}

return null; // Return null if 'rfc_v' cookie is not found
}
Hemicopter [2780600]
Just found out that I accidentally stumbled about and then used window.getCookie(name), implemented by torn lol
function getCookie(name) {
var r = document.match("\\b" + name + "=([^;]*)\\b");
return r ? r[1] : undefined;
}
iron [2428902]
In safari i cant access unsafeWindow to use the window.getCookie() function...

just for reference this is what the function is:

function getCookie(name) {
var cookie = document.match('\b' + name + '=([^;]*)\b');
return cookie ? cookie[1] : undefined;
}
mahir_r [2747394]

not a coder, but more pointers, quick slots exists, so quick dump search may use that approach instead of quick supply pack?