Feature request: greentext
-
>be me
>post some greentext-like story
>backspace every line because it's programmers' forum
>click "post"
>see it looks exactly like what you wanted
>it's all in black, like every other text on the site
>realize it doesn't have to be
>make another pointless feature request thread because threads are free
>add random political bullshit at the end just to annoy peopleMAGA
-
I tried it once on here. He went into meltdown.
-
@pjh by "he", do you mean ?
-
@gąska I had to look up "greentext".
-
@gąska said in Feature request: greentext:
>be me
>post some greentext-like story
>backspace every line because it's programmers' forum
>click "post"
>see it looks exactly like what you wanted
>it's all in black, like every other text on the site
>realize it doesn't have to be
>make another pointless feature request thread because threads are free
>add random political bullshit at the end just to annoy peopleMAGABurma-Shave!
-
@gąska
>This is open source
>You can make all the requests you want
>But if you want them implemented
>You have to BUILD them yourselfFiled under: A joke probably only BLUBAR and his GW2 guild will get
-
@izzion said in Feature request: greentext:
@gąska
>This is open source
>You can make all the requests you want
>But if you want them implemented
>You have to BUILD them yourselfFiled under: A joke probably only BLUBAR and his GW2 guild will get
I haven't actually done much dungeoning after I finished each explorable path once. And doing explorable paths in PUGs tends to mean skipping all the story.
Edit: Also, I think you meant to link here: https://wiki.guildwars2.com/wiki/Ascalonian_Catacombs_(explorable)#Detha.27s_route
-
-
@zecc said in Feature request: greentext:
@ben_lubar said in Feature request: greentext:
doing explorable paths in PUGs
pick-up group
Basically, any group of players that gets together one time to play a specific piece of content and then disbands.
-
I'm trying to decide which would be more appropriate: making
>
lines greentext, or making lines in<blockquote>
greentext instead of blockquoting (and making them start with>
), or both.Either way, it would be totally doable in userscript land...
-
@ben_lubar
I had the link delivered exactly where I meant to.
-
Script to make
>
lines greentext:(posting it in new post below*, as now it does blockquotes also)
edit: Fixed to
>handle this correctly, including the sub-elements
but not this, because it's on a new line
>and handle this
>and thisbut not this, because it's a block elementor this, because it's after the block elementre-process posts after they're streamed in / edited? maybe?
> yes and in the composer preview alsoAny more edge cases that I forgot about, I wonder? (Probably...)
*once it's ready
-
I like green text like this.
-
@anotherusername said in Feature request: greentext:
@pjh by "he", do you mean ?
No. One of our other denizens who regularly goes into green-ink mode.
"Abuse of power" was mentioned shortly after, since -being unaware of the concept anyway - the irony was forever lost on him.
Still is, I believe.
Backstory, for those not following along: as a joke, I changed the site CSS to make a particular user's text green in all his posts, after a series of egregiously whiney posts.
Reader, it did not go down well.
-
@pjh I wasn't familiar with that backstory...
-
@anotherusername, it's still around here somewhere, probably in lounge. CBA to look it up ATM. I appear to be still non-sober, and my phone's battery is complaining about my using it.
-
@gąska said in Feature request: greentext:
>make another pointless
featurecode request thread because threads are free
>add random political bullshit at the end just to annoy peopleMAGA
@gąska why are you describing Gavino's posting habits?
-
@pjh said in Feature request: greentext:
@anotherusername, it's still around here somewhere, probably in lounge. CBA to look it up ATM. I appear to be still non-sober, and my phone's battery is complaining about my using it.
Nope, plain old Meta:
-
Ok, new and improved greentext script:
(function () { document.head.appendChild(document.createElement('style')).innerHTML = '.greentext{color:#789922}.greentext-block{display:inline-block!important;vertical-align:middle!important}'; function process(s) { [].slice.call(document.querySelectorAll(s)).forEach(function (p) { /* replace blockquote elements with angle-bracket style quotes */ p.normalize(); [].slice.call(p.querySelectorAll('blockquote:not([class])')).reverse().forEach(function (q) { var e = document.createElement('p'); q.replaceWith(e); [].slice.call(q.childNodes).forEach(function (c) { if (c.nodeType != c.ELEMENT_NODE || !c.classList.contains('toggle')) { e.appendChild(c); } }); var n = 1; [].slice.call(e.childNodes).forEach(function recur(c) { if (c.nodeType == c.ELEMENT_NODE && window.getComputedStyle(c).display == 'block') { if (/iframely/.test(c.className)) { var g = c.previousSibling; if (!g || g.nodeType != g.ELEMENT_NODE || !g.classList.contains('greentext')) { g = c.parentElement.insertBefore(document.createElement('span'), c); g.classList.add('greentext'); } g.appendChild(document.createTextNode('> ')); g.appendChild(c); c.classList.add('greentext-block'); g.appendChild(document.createElement('br')); n = 1; } else { var p = 0, pre = window.getComputedStyle(c).whiteSpace == 'pre'; if (c.tagName == 'P') { p = n = 1; var d = document.createElement('div'); [].slice.call(c.childNodes).forEach(function (j) { d.appendChild(j); }); if (!pre) { while (d.firstChild && d.firstChild.nodeType == d.TEXT_NODE && !/\S/.test(d.firstChild.data)) d.firstChild.remove(); while (d.lastChild && d.lastChild.nodeType == d.TEXT_NODE && !/\S/.test(d.lastChild.data)) d.lastChild.remove(); } c.replaceWith(d); c = d; } [].slice.call(c.childNodes).forEach(recur); } while (!pre && c.nextSibling && c.nextSibling.nodeType == c.TEXT_NODE && !/\S/.test(c.nextSibling.data)) { c.nextSibling.remove(); } if (p && c.nextSibling) { if (!n) c.appendChild(document.createElement('br')); c.appendChild(document.createTextNode('> ')); } n = 1; } else if (c.nodeType != c.TEXT_NODE || c.previousSibling || /\S/.test(c.data)) { if (n) { if (c.nodeType == c.TEXT_NODE) { c.data = '> ' + c.data.replace(/^\s+/, ''); } else if (c.nodeType != c.ELEMENT_NODE || c.tagName != 'BR') { c.parentNode.insertBefore(document.createTextNode('> '), c); } } n = c.nodeType == c.ELEMENT_NODE && (window.getComputedStyle(c).display == 'block' || c.tagName == 'BR'); } }); }); /* end replace blockquotes with angle-bracket quotes */ p.normalize(); (function processChildNodes(e, n) { if (e.nodeType == e.ELEMENT_NODE && (e.tagName == 'BR' || window.getComputedStyle(e).display == 'block')) n = 1; if (e.childNodes && e.childNodes.length) { [].slice.call(e.childNodes).forEach(function (c) { if (!n) { var q = c.previousSibling; if (q && q.nodeType == q.ELEMENT_NODE && q.classList.contains('greentext')) { if (c.nodeType != c.ELEMENT_NODE || window.getComputedStyle(c).display != 'block') { q.appendChild(c); } } } n = processChildNodes(c, n); }); } else if (n) { if (e.nodeType == e.TEXT_NODE && /\S/.test(e.data)) { n = 0; if (/^\s*>/.test(e.data) && !e.parentElement.classList.contains('greentext')) { var g = document.createElement('span'); g.classList.add('greentext'); e.replaceWith(g); g.appendChild(e); } } else if (e.nodeType == e.ELEMENT_NODE && e.tagName != 'BR' && window.getComputedStyle(e).display != 'block') { n = 0; } } if (e.nodeType == e.ELEMENT_NODE && (e.tagName == 'BR' || window.getComputedStyle(e).display == 'block')) n = 1; return n; })(p, 1); }); }; $(window).on('action:topic.loaded', function () { process('[component="post/content"]'); }); $(window).on('action:posts.loaded', function () { process('[component="post/content"]'); }); $(window).on('action:posts.edited', function () { process('[component="post/content"]'); }); $(window).on('action:composer.preview', function () { process('.composer .preview-container>.preview'); }); process('[component="post/content"],.composer .preview-container>.preview'); })();
If you don't want it to convert blockquotes into
>
quotes, find these two comment lines, and either comment out or delete all of the lines of code in-between them:/* replace blockquote elements with angle-bracket style quotes */
/* end replace blockquotes with angle-bracket quotes */
-
@anotherusername and here's the results:
Without the blockquote-replacing code, the second one looks like:
-
@pjh said in Feature request: greentext:
@anotherusername said in Feature request: greentext:
@pjh by "he", do you mean ?
No. One of our other denizens who regularly goes into green-ink mode.
"Abuse of power" was mentioned shortly after, since -being unaware of the concept anyway - the irony was forever lost on him.
Still is, I believe.
Backstory, for those not following along: as a joke, I changed the site CSS to make a particular user's text green in all his posts, after a series of egregiously whiney posts.
Reader, it did not go down well.
Are you saying that you think "green-ink mode" is synonymous for (or an indication of) whining? Because that's never been my impression.
-
@anotherusername said in Feature request: greentext:
Are you saying that you think "green-ink mode" is synonymous for (or an indication of) whining? Because that's never been my impression.
It's different from chan green-text.
-
@anotherusername said in Feature request: greentext:
Are you saying that you think "green-ink mode" is synonymous for (or an indication of) whining? Because that's never been my impression.
Wrong flavour of ink.
A collective term for people who write letters (to politicians, newspaper editors, etc.) expressing eccentric views often characterized by prolixity, capital letters and underlining, sometimes written in long hand and stereotypically, but not necessarily actually, written in green ink.
But .
-
@anotherusername It's kind you took your time for writing it, but it doesn't work you if the intention is presenting something to other people as greentext.
-
@sockpuppet7 what do you mean, other people? WOMM.
-
@sockpuppet7
User scripts work for everyone, we're all @boomzilla's alts, so once the script is installed on one alt's machine, it's installed for all the alts. Duh. :valleygirl.gif:
-
@pjh said in Feature request: greentext:
"Abuse of power" was mentioned shortly after, since -being unaware of the concept anyway - the irony was forever lost on him.
Still is, I believe.
Backstory, for those not following along: as a joke, I changed the site CSS to make a particular user's text green in all his posts, after a series of egregiously whiney posts.
Reader, it did not go down well.I found that thread and think this forum used to be much more fun with mods being more abusive and people screaming at each other.
You guys are starting to do work and this place is starting to become just another boring forum.
-
@sockpuppet7 said in Feature request: greentext:
I found that thread and think this forum used to be much more fun with mods being more abusive and people screaming at each other.
It could happen again. We would just need another -level troll to show up.
-
@antiquarian No thanks? That was too much.
We do have too many missing people, though. The hedgehog doesn't show up anymore, the bsetfox stays in the lounge these days, the user of mystical jellypotato power has been gone for a while...
That said, I once went spelunking, and read all the articles in the past 5 years or so, and most of the comments, and wow we had some WEIRD people at times.
-
@magus yeah, a few people have left, but angry pumpkin guy has returned...
-
@anotherusername So basically, this place is steadily deteriorating?
-
@antiquarian paging @Lukfi
-
@anotherusername Glad he's back, even if he seemed to be getting a bit excitable when he left. This place is boring when all we have to laugh at is vacuum trains.
-
@masonwheeler said in Feature request: greentext:
@anotherusername So basically, this place is steadily deteriorating?
For the past 13 years, yes.
-
@pie_flavor said in Feature request: greentext:
paging @Lukfi
He's good, but he needs to up his game a bit to be on 's level.
-
@pie_flavor said in Feature request: greentext:
@antiquarian paging @Lukfi
Because you disagree with my opinions in one thread? I don't follow.
-
@lukfi said in Feature request: greentext:
I don't follow.
And please stay that way; it's more entertaining.
-
@lukfi Who the fuck... Oh hi! I don't think we've met.
Happy belated promotion from lurker!
-
@magus said in Feature request: greentext:
@anotherusername Glad he's back, even if he seemed to be getting a bit excitable when he left. This place is boring when all we have to laugh at is vacuum trains.
I expect that my bizarre rants are good for a few chuckles. Not anything else, certainly, but a few chuckles.
-
@tsaukpaetra said in Feature request: greentext:
@lukfi Who the fuck... Oh hi! I don't think we've met.
Happy belated promotion from lurker!We haven't met, but I've been lurking on the forums for some time. Some of you guys have great insights on technology and other stuff, but mostly I didn't feel like contributing to the discussion, partly because of one member that turns every thread he visits into a stream of profanities and flamewar. That's why I'll do you the courtesy of not mentioning his name here :-P
-
@scholrlea said in Feature request: greentext:
I expect that my bizarre rants are good for a few chuckles. Not anything else, certainly, but a few chuckles.
We're still waiting for you to revise that one about the programming IDE powered by a database file system thingy you were talking about a few weeks ago. Did you just give up on that?
-
@blakeyrat Well... yes and no. I haven't given up on the idea, just on trying to explain it before I had worked it out in greater detail.
That, and 99% of the time, I have given up on trying to do anything more than sitting in my apartment and rotting (and shitposting). Every once in a great while I am able to get myself motivated to do more, but not often enough.
-
@scholrlea said in Feature request: greentext:
That, and 99% of the time, I have given up on trying to do anything more than sitting in my apartment and rotting (and shitposting).
You should get a condo. Spending 99% of your time sitting in a condo and rotting (and shitposting) is way better.
-
@scholrlea said in Feature request: greentext:
@magus said in Feature request: greentext:
@anotherusername Glad he's back, even if he seemed to be getting a bit excitable when he left. This place is boring when all we have to laugh at is vacuum trains.
I expect that my bizarre rants are good for a few chuckles. Not anything else, certainly, but a few chuckles.
I'm confused. Do you think we were talking about you? I wasn't...
edit: nevermind, I see what you were saying
-