PSP Hacks - Forums

Go Back   PSP Hacks - Forums > Tech Talk > PC Programming

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 07-21-2009, 04:17 AM
but2002's Avatar
but2002 but2002 is offline
PSP Veteran
 

Join Date: Oct 2007
Location: /root/media/sda1
Posts: 1,385
but2002 is on a distinguished road
Default Greasemonkey Help

This is a YouTube script

Basically
in the URL, if there's the &hd=1, I want it to do this

Code:
if ($hd=1) {
        conf["width"] = 853;
        conf["height"] = 550;
}
Does anyone know how to do that?
__________________

Reply With Quote
  #2  
Old 07-22-2009, 12:42 PM
PartQual PartQual is offline
PSP Newbie
 

Join Date: Jan 2008
Posts: 32
PartQual Has a Beginner Reputation
Default

I'm assuming this is PHP based, and if so one thing jumps out:
Code:
if ($hd=1) {
should be
Code:
if ($hd == 1) {
In PHP, like C, a single equals (=) means assignment; use double equals (==) for equality check.
PQ.
Reply With Quote
Reply

 



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:26 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©