Loading. Please Wait... 
 |
 |
 |
[WTS] [closed] Super's inactive shop |
|
Jun 3 2016, 18:59
|
Overt Ninja
Group: Members
Posts: 266
Joined: 20-January 12

|
Could I get Mid-Grade Metals - 500c [2000] x130 please? Thanks
|
|
|
|
 |
|
Jun 6 2016, 05:45
|
djackallstar
Group: Gold Star Club
Posts: 8,216
Joined: 23-July 14

|
QUOTE(Superlatanium @ Oct 28 2015, 00:27)  To calculate this quickly, plug the numbers into [ reasoningtheory.net] this linkIn the situation when the focus is on #baseCost, #pxp1 or #rounds, if the focus is set to another INPUT element other than the currently focused one, the textContent of #results will be refreshed. Is the action intended or a bug? I thought that textContent should only be refreshed when #calculate is pressed. This post has been edited by djackallstar: Jun 6 2016, 05:47
|
|
|
|
 |
|
Jun 6 2016, 05:55
|
Superlatanium
Group: Gold Star Club
Posts: 7,607
Joined: 27-November 13

|
QUOTE(djackallstar @ Jun 6 2016, 03:45)  In the situation when the focus is on #baseCost, #pxp1 or #rounds, if the focus is set to another INPUT element other than the currently focused one, the textContent of #results will be refreshed. Is the action intended or a bug? I thought that textContent should only be refreshed when #calculate is pressed. Yep, that's what it's supposed to do. I initially just had "Calculate" but later I realized I could set the onblurs to do the same thing, so I did.
|
|
|
Jun 6 2016, 06:40
|
kyouri
Group: Catgirl Camarilla
Posts: 1,012
Joined: 26-October 09

|
408 Mid-Grade Cloth please, I'd like to do the special.
=244800 * 0.88 discount = 215 424 / 36000 = 5.9.
I'll send across 6 crystal packs.
|
|
|
Jun 6 2016, 19:07
|
djackallstar
Group: Gold Star Club
Posts: 8,216
Joined: 23-July 14

|
QUOTE(Superlatanium @ Oct 28 2015, 00:27)  What do you think about changing the linked url, from CODE http://forums.e-hentai.org/index.php?showtopic=185533&view=findpost&p=4225447 to CODE http://forums.e-hentai.org/index.php?showtopic=185533#post-main-4225447 ? Pros: - Better responsiveness - No new tab/window/object - No need to Ctrl+F the word "preview" Cons: - n/a This post has been edited by djackallstar: Jun 6 2016, 19:08
|
|
|
|
 |
|
Jun 6 2016, 22:58
|
Superlatanium
Group: Gold Star Club
Posts: 7,607
Joined: 27-November 13

|
QUOTE(djackallstar @ Jun 6 2016, 17:07)  What do you think about changing the linked url, from CODE http://forums.e-hentai.org/index.php?showtopic=185533&view=findpost&p=4225447 to CODE http://forums.e-hentai.org/index.php?showtopic=185533#post-main-4225447 ? Pros: - Better responsiveness - No new tab/window/object - No need to Ctrl+F the word "preview" Cons: - n/a When I made the thread I tried a few things to get an anchor link to work like that, since it would be so much more convenient for the reasons you say, but for some stupid reason, every single <a> in a post automatically gets a target="_blank". Unless I'm missing something, on this version of IPB forums, there's no way to get a link to open in the current window rather than opening in a new window/tab. (short of a userscript that removes the target="_blank", but I've never seen one of those, and even I don't use one) Have you found a way in bbcode to force the forum to use a standard link without target="_blank"? If you have, that would be extremely useful (IMG:[ invalid] style_emoticons/default/smile.gif) I'll give you a few artifacts (I changed the link the way you suggest, but as you see, it still opens in a new tab, so there's no difference between using view=findpost or #post-main, not on our end at least) This post has been edited by Superlatanium: Jun 6 2016, 23:00
|
|
|
|
 |
|
Jun 7 2016, 02:39
|
Despair✽
Group: Catgirl Camarilla
Posts: 203
Joined: 15-May 13

|
Mid-Grade Wood *100 Low-Grade Wood *100 Defense Matrix Modulator *10 Binding of the Barrier*15
|
|
|
|
 |
|
Jun 7 2016, 02:54
|
djackallstar
Group: Gold Star Club
Posts: 8,216
Joined: 23-July 14

|
QUOTE(Superlatanium @ Jun 7 2016, 04:58)  When I made the thread I tried a few things to get an anchor link to work like that, since it would be so much more convenient for the reasons you say, but for some stupid reason, every single <a> in a post automatically gets a target="_blank". Unless I'm missing something, on this version of IPB forums, there's no way to get a link to open in the current window rather than opening in a new window/tab. (short of a userscript that removes the target="_blank", but I've never seen one of those, and even I don't use one) Have you found a way in bbcode to force the forum to use a standard link without target="_blank"? If you have, that would be extremely useful (IMG:[ invalid] style_emoticons/default/smile.gif) I'll give you a few artifacts (I changed the link the way you suggest, but as you see, it still opens in a new tab, so there's no difference between using view=findpost or #post-main, not on our end at least) Oh, didn't notice the auto generated "target" property ... A one-liner will do: CODE for(var i=0, a=document.querySelectorAll('A'); i<a.length; i++) { a[i].target='_self'; } And unfortunately no, I don't know much about bbcode, so I asked your question on IRC, and: QUOTE <@Maximum_Joe> BBCode for forcing a new window doesn't exist AFAIK Well, "BBCode for forcing to open the linked url in the current window" probably doesn't exist either.
|
|
|
|
 |
|
Jun 7 2016, 03:20
|
Despair✽
Group: Catgirl Camarilla
Posts: 203
Joined: 15-May 13

|
Mid-Grade Wood *200
|
|
|
Jun 7 2016, 07:15
|
Despair✽
Group: Catgirl Camarilla
Posts: 203
Joined: 15-May 13

|
Mid-Grade Metals*200
|
|
|
Jun 7 2016, 13:44
|
ikaponchi
Newcomer
 Group: Members
Posts: 41
Joined: 30-May 16

|
Free items, please.
|
|
|
Jun 7 2016, 20:49
|
tuscck
Group: Gold Star Club
Posts: 444
Joined: 7-September 14

|
Binding of the Raccoon x 5
CoD plz
|
|
|
Jun 7 2016, 21:07
|
Striborg
Group: Gold Star Club
Posts: 439
Joined: 6-June 11

|
QUOTE(Superlatanium @ Jun 7 2016, 21:05)  Or just send the item and I'll CoD back.
Alright, sent The calculator said the cost would come to 133k
|
|
|
|
 |
|
Jun 8 2016, 07:48
|
djackallstar
Group: Gold Star Club
Posts: 8,216
Joined: 23-July 14

|
QUOTE(Superlatanium @ Oct 28 2015, 00:27)  SmartSearch 1.2.3
SmartSearch_1.2.3.user.js.txt ( 31.82k )
Number of downloads: 2628 There is a code snippet in the .js file: CODE var replacements = [ [/ /g, ' '], [/\s+/g, ' '], [/<br[^>]*>/g, '\n'], [/<li>/g, '\n'], [/<strike>/g, '[s]'], [/<\/strike>/g, '[/s]'], //[/<\/?[^>]+(>|$)/g, ''], //remove all html tags [/<\/?([^a\/]|a\w)[^>]*(>|$)/g, ''], //remove all html tags except <a> </a> [/\srel="[^"]+"/g, ''], [/\starget="[^"]+"/g, ''], [/</g, '<'], [/>/g, '>']];
To make your script robust, I think you'd better do a two-step data cleaning rather than mixing parsing HTML and parsing BBCode together. Method 1 - Step 1: Decode HTML
[stackoverflow.com] html-entity-decode (cf. other answers beside the accepted one) also [stackoverflow.com] this. - Step 2: Decode BBCode
brute force?
Method 2 This post has been edited by djackallstar: Jun 8 2016, 07:53
|
|
|
|
 |
|
Jun 8 2016, 08:45
|
Superlatanium
Group: Gold Star Club
Posts: 7,607
Joined: 27-November 13

|
QUOTE(djackallstar @ Jun 8 2016, 05:48)  There is a code snippet in the .js file: CODE var replacements = [ [/ /g, ' '], [/\s+/g, ' '], [/<br[^>]*>/g, '\n'], [/<li>/g, '\n'], [/<strike>/g, '[s]'], [/<\/strike>/g, '[/s]'], //[/<\/?[^>]+(>|$)/g, ''], //remove all html tags [/<\/?([^a\/]|a\w)[^>]*(>|$)/g, ''], //remove all html tags except <a> </a> [/\srel="[^"]+"/g, ''], [/\starget="[^"]+"/g, ''], [/</g, '<'], [/>/g, '>']];
To make your script robust, I think you'd better do a two-step data cleaning rather than mixing parsing HTML and parsing BBCode together. The script never actually parses or does anything with BBCode. After all, BBCode is only seen when posting or editing, but the script only ever looks at the plain HTML when viewing a thread. So there are never any BBCode tags, except for CODE '[s]' [/s]' that the script occasionally adds to the post text intentionally (and are never re-parsed as <strike> or decoded or anything). (I could have just as easily left in the '<strike>' '</strike>' and adjust the regexes and lineStartsWithStrikethrough / lineEndsWithStrikethrough tests accordingly, but people in the forum are surely more familiar with CODE '[s]' '[/s]' , it's shorter, and the lines are easier to read without strikethrough format, at least for me, so that's what I did.) Everything is displaying as intended. I don't think there's a problem. (I don't want to add or work with BBCode in the script if I don't absolutely have to, and thankfully I don't have to) Though now that I think about it, maybe the trs with strikethroughs should be colored... it would be even easier to look through when there are many tens of lines to go through in the SmartSearch results...
|
|
|
|
 |
|
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
|
 |
 |
 |
|
|
|