Skip to content

Commit

Permalink
Show GAMEID instead of region (Fix #7)
Browse files Browse the repository at this point in the history
  • Loading branch information
yne committed May 6, 2023
1 parent 469adcb commit 72801b6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
<header>
<a href="https://github.com/yne/psndl">PSNDL</a>
<form name="engine" onsubmit="location.hash=query.value;render();return false">
<input type="hidden" size="55" name="disclamer" value="PS3 web browser can't download JS-generated RAP => use a PC" disabled><br>
<input type="search" name="query" size="25">
<input type="submit" name="send" value="search" disabled>
<input type="button" name="fetch" value="reload database" onclick="fetchDB()">
Expand All @@ -16,9 +15,7 @@
<ul id="list"></ul>
<script>
try {
var isPS3 = navigator.userAgent.match(/playstation/i);
var f = document.forms.engine;
if(navigator.userAgent.match(/playstation/i))f.disclamer.type='text'
var DB = window.localStorage ? JSON.parse(localStorage.DB || '[]') : [];
function makeRap(row) {
var hex = row[4];
Expand Down Expand Up @@ -52,7 +49,7 @@
if (!DB[i][5].match(rule)) continue;
found++;
var a = DB[i];
document.getElementById('list').innerHTML += '<li><a href="http://zeus.dl.playstation.net/cdn/' + a[1] + '/' + a[0] + '_00/' + a[2] + '.pkg">' + a[5] + ' ' + (a[3]) + ' (' + a[0][2] + ")</a> " + makeRap(a) + "</li>";
document.getElementById('list').innerHTML += '<li><a href="http://zeus.dl.playstation.net/cdn/' + a[1] + '/' + a[0] + '_00/' + a[2] + '.pkg">' + a[5] + ' ' + (a[3]) + ' [' + a[0] + "]</a> " + makeRap(a) + "</li>";
}
};
f.query.value = location.hash.replace(/^#+/, '');
Expand Down

0 comments on commit 72801b6

Please sign in to comment.