User talk:Sid/Anti-Hackery-Link-Rewrite

From RationalWiki
Jump to navigation Jump to search

How do I get it to work? (haha) =.= Candlewick 18:19, 14 August 2008 (EDT)

One second, I think I got a better version for you. --Sid 18:20, 14 August 2008 (EDT)
Check this version you can copy-paste on CP. It'll work without Greasemonkey or anything. --Sid 18:24, 14 August 2008 (EDT)
You'll need to refresh your cache or something, though, won't you? <font=""; face="Comic Sans MS">Jellyfish!It doesn't make you less of a man, it makes you more of a shoe. 18:27, 14 August 2008 (EDT)
With the Greasemonkey script, you will need to reload some page once after saving the script. The userscript version might take a few more refreshes. --Sid 18:29, 14 August 2008 (EDT)

Peer review![edit]

Having been deprived of my daily quota of Conservapedia, my spleen is backing up, so have a peer review for free and gratis!

  • Defining an anonymous function and then immediately calling it makes baby Jesus cry.
  • The post increment operator when you have no intention of using the result, likewise. THE CPU PIPELINE HAS RIGHTS TOO, YOU KNOW!

if (thisElement.href.match(/index\.php/i)) { } else /* ... */

  • This ^ makes me yearn for the halcyon days of reviewing code from India. Meet Mr. Logical NOT operator '!', you'll be firm friends.
  • Regular expressions when what you want it a simple string match are one of the prime reasons your CPU is clocked at 2Ghz and sits at 30% usage even when you aren't using it. indexOf, sir. indexOf.
  • "blah = bluh[0]". What protocols are you expecting here other than http? Does conservapedia have a gopher interface I don't know about?
  • Using indices of an array without knowing it has that many first is bad, mmm'kay? This is why you should always learn to program in a language that rewards such behaviour with segfaults first.

Now, write on the blackboard "Software. Serious Business." 100 times and report to your house prefect for a whipping :D --JeevesMkII 19:49, 14 August 2008 (EDT)