User Statshot
- Community Stats
-
Level 3 Blank Slate
-
Normal Whistle
-
Ranked as Civilian
Latest News
How to say "fuck you" to php
2/28/12 by B1KMusic
with this javascript feature, php can go $_fuck['itself']. You probably know what I'm talking about, the $_GET[] variable in php :D.
Can also be written as a jQuery Plugin.
//////////////////////////////
function _GET(key, def){
try{
return RegExp('[?&]'+(typeof(key)=='object'?key.key:key )+'=([^#?&]*)').exec(location.href)[1].replace(/
%20|\+|\_/g, ' ')
}catch(e){
return tyepof(key)=='object'?(key.def?key.def:key._defa ult?key._default:''):(def?def:'')
}
}//Just save this into a fucking .js file you skript kiddie, you won't remember it
//////////////////////////
using Regular expressions and a shit-ton of ternary operation to keep it on one line and allow for function/jQuery syntax, this gets information from the url, ?q=ueer will be proccessed as the string "ueer" ?co=ck_joke&fa=ggot+crunch will automatically have the %20's, _'s, and +'s removed and replaced with actual fucking spaces (google does this, but don't bother searching for it, it's obfuscated to fucking hell)
Anyways, to use this, say you have the url "http://www.dumb-faggot.jewgrounds.com/?title=Wh at%20the%20Fuck"
to retrieve the title, use
var T = _GET('title', 'learn to spell you dumb faggot')
alert(T)
the window will pop up a box saying "What the Fuck"
if you misspelled "title" somehow, you'll get "learn to spell you dumb faggot" instead
Now the ternary part (condition?true:false)...
it allows to type this:
_GET({
key:'cock',
_default:'joke'
})
this will also get "joke" from a regular url, and "sucker" from ?cock=sucker&j=f&go=fuckurself
for POST...
use an invisible (css - iframe { border:0px solid white; height:0; width:0 }) iframe + ajax and jquery, duh.
WIKIPEDIAS Will go bankrupt!!!1
U Mad, wikipedos?
Recent Game Medals
Total Medals Earned: 86 (From 11 different games.)
Latest Audio Submissions
| REALLY Old Project :P | Drum N Bass Loop |
| DJ B1K - Animal Rights Remix | House Song |
| DJ B1K - Arksun Sytrus Remix | Trance Loop |
| DJ B1K - CV Strings Alter | Miscellaneous Loop |
Latest Art
Favorite Audio
| The Rise of the BIGHEAD. | Techno Song | |
| xKore - Event Horizon | Drum N Bass Song | |
| Reflections >Dubstep< | Dubstep Song | |
| [DjBjra] - Arrow to the Knee | Dubstep Song |