Loading. Please Wait... 
 |
 |
 |
[WTB] Sender script for FreeSHop: 400k + 500 Hath, 26/10 edit: raised reward - now about 4M |
|
Sep 16 2014, 01:30
|
Scremaz
Group: Gold Star Club
Posts: 24,304
Joined: 18-January 07

|
QUOTE(Razor320 @ Sep 16 2014, 01:19)  Had some time to actually write (big word, just used one from auctioneer) parser and some ui. Button in top right corner acts as trigger for dropdown dialog with queued items list and buttons 'send' and 'clear'. Any changes need? (Screenshot with disabled item existence check - otherwise only black "not found" will appear) I think i also could do automatic limits checking and share data between different PCs using some post in shop thread. How much characters allowed in one message in thread? around 45000 character, but i don't know the exact amount. just wondering, why that ''don't send'' thing? item exists, still in FS possession and requested... have i missed something? (IMG:[ invalid] style_emoticons/default/huh.gif)
|
|
|
|
 |
|
Sep 16 2014, 14:15
|
lessfull
Group: Members
Posts: 175
Joined: 9-May 14

|
Am I right, you need to have repaired version of that script which was broken by 0.80 version (as minimum requirement)?
|
|
|
|
 |
|
Sep 16 2014, 14:46
|
Razor320
Group: Members
Posts: 220
Joined: 17-October 13

|
QUOTE(Scremaz @ Sep 16 2014, 03:30)  around 45000 character, but i don't know the exact amount. just wondering, why that ''don't send'' thing? item exists, still in FS possession and requested... have i missed something? (IMG:[ invalid] style_emoticons/default/huh.gif) It's a button, and text on it represents action that would be taken on click. Green background for items that could be sent, orange for items that already queued for another user, blue for items that would be sent to user when you choose so and, finally, black for items that didn't found in inventory. Today i try to complete ui and sending function, if i have time i also run mock test and send something to FreeSHop using script. This post has been edited by Razor320: Sep 16 2014, 14:47
|
|
|
|
 |
|
Sep 16 2014, 16:00
|
Scremaz
Group: Gold Star Club
Posts: 24,304
Joined: 18-January 07

|
QUOTE(lessfull @ Sep 16 2014, 14:15)  Am I right, you need to have repaired version of that script which was broken by 0.80 version (as minimum requirement)?
yep. the bare minimum (IMG:[ invalid] style_emoticons/default/rolleyes.gif) QUOTE(Razor320 @ Sep 16 2014, 14:46)  It's a button, and text on it represents action that would be taken on click. Green background for items that could be sent, orange for items that already queued for another user, blue for items that would be sent to user when you choose so and, finally, black for items that didn't found in inventory.
Today i try to complete ui and sending function, if i have time i also run mock test and send something to FreeSHop using script.
oh, it was only a graphical display then. i knew i didn't catch something, thanks (IMG:[ invalid] style_emoticons/default/biggrin.gif)
|
|
|
|
 |
|
Sep 17 2014, 13:42
|
ctxl
Group: Members
Posts: 425
Joined: 20-May 12

|
I'm back and have some code to quickly recycle into this challenge. I don't plan on addressing all of the requirements and won't be competing for the reward.
Would it be safe to assume that recent versions of Chrome/Firefox will be used to manage the free shop?
window.postMessage (as used in the script attached to the first post) is fairly well-supported in the latest versions of modern browsers. It also breaks spectacularly in older versions (e.g. Chrome 23), which some users may be clinging onto for performance reasons.
|
|
|
|
 |
|
Sep 17 2014, 16:30
|
Scremaz
Group: Gold Star Club
Posts: 24,304
Joined: 18-January 07

|
your support is gladly appreciated nonetheless (IMG:[ invalid] style_emoticons/default/smile.gif) QUOTE(ctxl @ Sep 17 2014, 13:42)  Would it be safe to assume that recent versions of Chrome/Firefox will be used to manage the free shop?
i guess so. personally i use firefox 30/32 (don't really remember which one) and pretty sure ai does so too. don't know as for piyin and the girl though
|
|
|
|
 |
|
Sep 18 2014, 10:40
|
Razor320
Group: Members
Posts: 220
Joined: 17-October 13

|
ctxl, modern Chrome and Firefox also supports cross-domain XMLHttpRequests in userscripts through one of GM_api - GM_xmlhttpRequest. It is far more convenient than message way. Firefox requires one of user scripting extensions, Scriptish or GreaseMonkey, and Chrome provides this api natively (though don't know from which version it is available, but users of old versions could install Tampermonkey, which also provides this api). I implemented requests history in script. Size optimized, so single post in forum thread could contain around 4000 records (1 item - 1 record). Ban-list also could be stored in forum message to provide a simple way to exchange lists between different PCs. And notify users (IMG:[ invalid] style_emoticons/default/smile.gif)
|
|
|
|
 |
|
Sep 18 2014, 12:17
|
ctxl
Group: Members
Posts: 425
Joined: 20-May 12

|
[ a.pomf.se] The approach I cobbled together uses postMessage for two-way communication. I gave globally-scoped XHR a try and it went kaboom if you had multiple instances running.
|
|
|
|
 |
|
Sep 18 2014, 12:45
|
djackallstar
Group: Gold Star Club
Posts: 8,215
Joined: 23-July 14

|
QUOTE(ctxl @ Sep 18 2014, 18:17)  [ a.pomf.se] The approach I cobbled together uses postMessage for two-way communication. I gave globally-scoped XHR a try and it went kaboom if you had multiple instances running. Don't use GM_xmlhttpRequest in this situation, keep using window.postMessage instead. For GM_xmlhttpRequest, every time a message is sent, there is a network communication. For window.postMessage, all messages are passed using [ javascript.info] internal browser API, i.e. no network communication at all. So basically, keep using window.postMessage whenever you can, or the browser might go kaboom like you said. This post has been edited by djackallstar: Sep 18 2014, 12:48
|
|
|
|
 |
|
Sep 18 2014, 13:53
|
Razor320
Group: Members
Posts: 220
Joined: 17-October 13

|
QUOTE(ctxl @ Sep 18 2014, 14:17)  [ a.pomf.se] The approach I cobbled together uses postMessage for two-way communication. I gave globally-scoped XHR a try and it went kaboom if you had multiple instances running. And why are you trying to use same stateful object in several concurrent threads? QUOTE(djackallstar @ Sep 18 2014, 14:45)  Don't use GM_xmlhttpRequest in this situation, keep using window.postMessage instead. For GM_xmlhttpRequest, every time a message is sent, there is a network communication. For window.postMessage, all messages are passed using [ javascript.info] internal browser API, i.e. no network communication at all. So basically, keep using window.postMessage whenever you can, or the browser might go kaboom like you said. XMLHttpRequest has no relation to what goes in browser window.
|
|
|
|
 |
|
Sep 18 2014, 14:36
|
ctxl
Group: Members
Posts: 425
Joined: 20-May 12

|
QUOTE(Razor320 @ Sep 18 2014, 04:53)  And why are you trying to use same stateful object in several concurrent threads?
Web workers.
|
|
|
Sep 23 2014, 00:07
|
sssss2
Group: Gold Star Club
Posts: 3,959
Joined: 11-April 14

|
Ended?
I have written new script since last weekend, and I hope to finish within a day.
|
|
|
Sep 23 2014, 00:38
|
Scremaz
Group: Gold Star Club
Posts: 24,304
Joined: 18-January 07

|
QUOTE(sssss2 @ Sep 23 2014, 00:07)  Ended?
I have written new script since last weekend, and I hope to finish within a day.
worry not, we'll update the topic whenever we will be done. until now, there's still time to submit a script
|
|
|
Oct 2 2014, 21:10
|
animeai
Group: Members
Posts: 620
Joined: 18-November 09

|
100 hath added to script fund
|
|
|
Oct 23 2014, 12:16
|
Scremaz
Group: Gold Star Club
Posts: 24,304
Joined: 18-January 07

|
many thanks. and i confirm we're still in need of a script
|
|
|
Oct 24 2014, 06:35
|
jacksonville
Group: Gold Star Club
Posts: 545
Joined: 9-October 08

|
Sent a little incentive to help with the fix
This post has been edited by jacksonville: Oct 24 2014, 06:36
|
|
|
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
|
 |
 |
 |
|
|
|