Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

I AM NOT GOOD WITH COMPUTER

Name: Anonymous 2009-03-12 20:32

sup /prog/

I hate to interrupt your threads of trolling and nerdery but I need your help in the simple language of javascript for a greasemonkey script.

I have a script that retrieves certain elements (let's say the URLs of hyperlinks on a page) and a script that creates a text area on the same page.

How do I get the script to dump its contents (the URLs of the hyperlinks or whatever element I had it retrieve) into the textarea that I created on the same page?

Name: Anonymous 2009-03-12 20:36

document.getElementById('yourelem').value = 'Your content';

Name: Anonymous 2009-03-12 20:42

$("textarea#myinput").val("I love penix!");

Name: Anonymous 2009-03-12 21:04

>>3
>>2

How the hell would these fit here?

var y = document.getElementsByTagName('o');
      var z = /(.*\/s\/t\/.*)\/(.*)$/i;
      var count=0;
      num=0;
    for(var i = 0 ; i < y.length; i++) {
          if (z.test(obj[i].o)) {
              if ((count>=first&&count<last)) {
                  var temp = z.exec(obj[i].o);

 
              var o=temp[0].replace(/m/, 'k');
              discovered[discovered.length]=escape(o);
              }
              count++;
              num++;
             
var logo = document.createElement("textarea");
logo.innerHTML =
    '</textarea>';
document.body.insertBefore(logo, document.body.firstChild);

Name: Anonymous 2009-03-12 21:09

It doesn't. Now go away.

Name: Anonymous 2009-03-12 21:29

ONE WORD LEARN TO INDENT YOUR CODE THREAD OVER

Name: Anonymous 2009-03-12 21:47

I HAVE BEEN GOOGLING THIS FOR A LONG TIME I NEED YOUR HELP PROG STOP BEING A NIGGER

Name: Anonymous 2009-03-12 22:22

>>7
Read SICP.

Name: Anonymous 2009-03-12 22:24

STOP BEING A JEW

- A NIGGER

Name: Anonymous 2009-03-12 22:34

>>9
STOP BEING A NIGGER

- A JEW

Name: Anonymous 2009-03-12 22:36

>>9
>>10
STOP BEING ALIVE AND PROCREATING

-HAL TURNER

Name: Anonymous 2009-03-12 22:38

>>11

STOP

- HAMMER TIME

Name: Anonymous 2009-03-12 22:48

>>9-12
I lol'd despite all odds.

Name: Anonymous 2009-03-12 23:07

STOP ALL THE DOWNLOADIN'

- COMPUTER

Name: Anonymous 2009-03-12 23:27

STOP HAXXIN ME

- MY ANUS

Name: sage 2009-03-13 6:00

Sage

Name: Anonymous 2009-03-13 19:03

>>9-12
Also lol'd

Name: OP 2009-03-13 20:09

Still need help.

Name: David Bowie Meme Fan !Wlvt8BzHC2 2009-03-13 20:11

I'm not sure if I've understood your problem OP, but couldn't you just set the innerHTML of the text area you create to whatever you want (ie. the elements you retrieve)?

Name: Anonymous 2009-03-13 20:43

Using innerHTML is unacceptable. You must use Document Object Model to populate the textarea in an enterprise standards-compliant fashion:

var links = ["http://www.hamstersex.com/", "http://dis.4chan.org/"];
var textarea= document.createElement("textarea");
for (i in links) {
  var link = document.createTextNode(i);
  textarea.appendChild(text);

  var bur = document.createElement("br");
  textarea.appendChild(bur);
}
document.body.insertBefore(textarea, document.body.lastChild)

Name: Anonymous 2009-03-13 22:39

>>20
Thank you fine man of /prog/ but this fails to create a textarea on the page through greasemonkey.

Name: Anonymous 2009-03-13 23:06

>>21
man of /prog/
Actually, the correct term is "/prog/rider"
/b/ has /b/tards
/v/ has /v/irgins
and /prog/ has /prog/riders

Name: Anonymous 2009-03-13 23:17

>>21-22
IT'S CALLED [spoiler]/prog/[/spoilker]
GET IT RIGHT FAGGOTS

Name: Anonymous 2009-03-14 0:03

>>23
IT'S CALLED [spoiler]
GET IT RIGHT FAGGOT

Name: Anonymous 2009-03-14 0:11

My 'violation of the DRY principle' sense is tingling!

Name: Anonymous 2009-03-14 1:26

>>23
It's called shift key
Get it right fagoot

Name: Trollbot9000 2009-07-01 7:53


test paste showing Python syntax highlighting at?

Name: !hr4NxQp5u6 2011-11-29 21:38

test

Name: !Zs/cVBqKkk 2011-11-29 21:38

test

Name: !0ClbVFNx8w 2011-11-29 21:38

test

Name: !vXhb.N7Wsc 2011-11-29 21:40

test

Name: !bwrLBshB1A 2011-11-29 21:41

test

Name: !5Dr0HChjW6 2011-11-29 21:42

test

Name: !kana63jhfM 2011-11-29 21:44

test

Name: Anonymous 2013-01-18 22:43

/prog/ will be spammed continuously until further notice. we apologize for any inconvenience this may cause.

Don't change these.
Name: Email:
Entire Thread Thread List