mackenzie129 Posted September 6, 2019 Share Posted September 6, 2019 I suggested a bounty board awhile ago, pay users to make something and inject it in the over arching website. 4 minutes ago, BlindMango said: True, but there hasn't been any major features added to the site for two years. I understand your desire to make sure the code is safe and all, but I mean this is nice for people that don't want to wait around for features to be officially implement that they've been requesting for years. Plus it's optional, it's up to people if they want to use it or not. If malicious code is found, we can take this post down - easy peasy Link to comment Share on other sites More sharing options...
WatertownsFinest Posted September 6, 2019 Share Posted September 6, 2019 (edited) 4 minutes ago, HusKy said: Thank you @WatertownsFinest @BlindMango @Abysm_Nucleus and others for your positive words. I can assure that I'm not planning to hack anyone with this. I will release the ordering/filtering update this weekend. For filtering games, might i suggest a: Platinum and/or 100%. Id like to filter so that i see both my games i have platted anddd the ones i have at 100% or 100% games but that isnt an option as it stands Edited September 6, 2019 by WatertownsFinest Link to comment Share on other sites More sharing options...
HusKy Posted September 6, 2019 Author Share Posted September 6, 2019 5 minutes ago, WatertownsFinest said: For filtering games, might i suggest a: Platinum and/or 100%. Id like to filter so that i see both my games i have platted anddd the ones i have at 100% or 100% games but that isnt an option as it stands I'm assuming you are talking about regular games list? That would be cool but this one needs to be added by Sly as it requires server adjustments to be efficient. The only way to do it via user script would be to load all of your games and then reorder them inside the page. For now, I would rather not tinker with the game table like this. 1 Link to comment Share on other sites More sharing options...
Popular Post adam1984123 Posted September 6, 2019 Popular Post Share Posted September 6, 2019 6 minutes ago, HusKy said: Thank you @WatertownsFinest @BlindMango @Abysm_Nucleus and others for your positive words. I can assure that I'm not planning to hack anyone with this. ? I will release the ordering/filtering update this weekend. Mate, you are doing an awesome job. Your contributions to this site and the trophy hunting community in general (the discovery of downgrading digital games to 1.0) have been amazing. Couldn’t care less if sly made this site - he’s doing nothing for it for ages now and never even acknowledges all the stuff his paying customers (premium members) and the non paying customers (who generate revenue for him through ads) have written in that feedback section. Not even a post. Dont listen to some of those negative comments that have been written. Some people just don’t appreciate other people’s contrbutions unfortunately. If you ever make your own site, I’d be happy to be a paying member. I’m sure a lot of people would fuck this place off as well if they saw you do something like this of your own just because they might get an update or two from the dude who owns it. That’s all people want in a community like this. Some communication. 20 Link to comment Share on other sites More sharing options...
Popular Post HusKy Posted September 6, 2019 Author Popular Post Share Posted September 6, 2019 8 minutes ago, adam1984123 said: Mate, you are doing an awesome job. Your contributions to this site and the trophy hunting community in general (the discovery of downgrading digital games to 1.0) have been amazing. Couldn’t care less if sly made this site - he’s doing nothing for it for ages now and never even acknowledges all the stuff his paying customers (premium members) and the non paying customers (who generate revenue for him through ads) have written in that feedback section. Not even a post. Dont listen to some of those negative comments that have been written. Some people just don’t appreciate other people’s contrbutions unfortunately. If you ever make your own site, I’d be happy to be a paying member. I’m sure a lot of people would fuck this place off as well if they saw you do something like this of your own just because they might get an update or two from the dude who owns it. That’s all people want in a community like this. Some communication. FWIW, I think this website is fantastic, the best achievement website out there. It would take years to create a clone that would be maybe half as good as PSNP. I would really like to know more about the infrastructure behind it and how things are done behind the curtains. If Sly can't or doesn't want to work on it, I'm fine with that too. I just figured, I might try to add something here as well and that's how this script was created. To slightly change the topic, has anyone added their complete backlog? If so, what are your numbers? I'm sitting at: Backlog • 49 Item(s) • 2,062 Trophies • 59,100 Points and I'm just glad PS5 will come with backwards compatibility. 6 Link to comment Share on other sites More sharing options...
Popular Post RNumbers Posted September 6, 2019 Popular Post Share Posted September 6, 2019 (edited) I don't post here much anymore, but I still recall when Husky came up with the downgrade method for Mad Max which eventually led to the more general method, one of the coolest things ever to come out of this site as far as I'm concerned. IMO, he's proven himself to be a valuable and dedicated member of this community. Keep up the good work, man. Edited September 6, 2019 by RNumbers 8 Link to comment Share on other sites More sharing options...
Alantor32 Posted September 7, 2019 Share Posted September 7, 2019 3 hours ago, HusKy said: FWIW, I think this website is fantastic, the best achievement website out there. It would take years to create a clone that would be maybe half as good as PSNP. I would really like to know more about the infrastructure behind it and how things are done behind the curtains. If Sly can't or doesn't want to work on it, I'm fine with that too. I just figured, I might try to add something here as well and that's how this script was created. To slightly change the topic, has anyone added their complete backlog? If so, what are your numbers? I'm sitting at: Backlog • 49 Item(s) • 2,062 Trophies • 59,100 Points and I'm just glad PS5 will come with backwards compatibility. I like this site too. I will give your script a try. But Sly made this site and if people don't like it when Sly is not around, he's probably busy with real life or something, so people shouldn't complain about stuff like this. Still, I am glad you think this is a great site. 2 Link to comment Share on other sites More sharing options...
Archavia Posted September 7, 2019 Share Posted September 7, 2019 Impressive work. Will this work on Opera? Link to comment Share on other sites More sharing options...
Kapika96 Posted September 7, 2019 Share Posted September 7, 2019 Nice one! Link to comment Share on other sites More sharing options...
mackenzie129 Posted September 7, 2019 Share Posted September 7, 2019 Checked it out (tinfoil hat) Used it loved it, need alphabetical sorting along with platform icons please and thank you but will use stay sexy @HusKy Link to comment Share on other sites More sharing options...
Popular Post MMDE Posted September 7, 2019 Popular Post Share Posted September 7, 2019 (edited) On 9/7/2019 at 0:02 AM, BlindMango said: True, but there hasn't been any major features added to the site for two years. I understand your desire to make sure the code is safe and all, but I mean this is nice for people that don't want to wait around for features to be officially implement that they've been requesting for years. Plus it's optional, it's up to people if they want to use it or not. If malicious code is found, we can take this post down - easy peasy I think you miss what I tried to say. The post I responded to made no sense, at least to me, and it seemed like they thought other people than Sly was part of the team and he hadn't been doing anything. Sly has been working on a lot of maintenance stuff such as the name change. There's definitely a lot of small things I've had to fix myself, as I already said earlier in this thread. Anyway, this is why you don't need 900 000 characters of code, as this does almost the same as the script he provided I think. I didn't test it, and won't as it might leak very sensitive data. And the problem is, nobody is going to look through that either. // ==UserScript== // @name PSNP - Add backlog // @namespace mmde.psnp // @version 0.1 // @description Add backlog just to show how simple it can be done // @author MMDE // @match https://psnprofiles.com/trophies/* // @include /^https://psnprofiles\.com/[^/]+$/ // @grant noConflict // ==/UserScript== // page scripts function gamePage() { function update(remove) { while(button.firstChild) button.firstChild.remove(); button.appendChild(ElementBuilder.builder("button") .withText(remove ? "remove from backlog" : "add to backlog") .withAttribute("class", "button " + (remove ? "red" : "green")) .withEvent("click", () => { if(remove) Saver.remove("backlog", id); else Saver.set("backlog", id, {"url": url, "title": title, "img": img}); update(!remove) }) .build()); } var div = document.querySelector(".game-image-holder"), url = location.pathname.substr(10).match(/[^\/]+/)[0], id = url.match(/\d+/)[0], title = document.querySelector(".title-bar.flex.v-align > .grow > h3").lastChild.data, img = div.firstElementChild.href, remove = false, button = ElementBuilder.builder("div") .withAttribute("align", "center") .build(), added = Saver.load("backlog")[id] !== undefined ? true : false; div.parentElement.insertBefore(button, div.nextElementSibling); update(added); } function profilePage() { var ul = document.querySelector(".title-bar.flex.v-align > :last-child > :first-child"); ul.insertBefore( ElementBuilder.builder("li") .withChild(ElementBuilder.builder("a") .withText("Backlog") .withEvent("click", () => { ul.firstElementChild.removeAttribute("class"); var recent = document.querySelector("#recent-trophies"); if(recent !== null) recent.remove(); ul.firstElementChild.nextElementSibling.setAttribute("class", "active"); showBackLog(); }) .build()) .build(), ul.firstElementChild.nextElementSibling); } // backlog screen function showBackLog() { var div = document.querySelector(".row"); while(div.firstChild) div.firstChild.remove(); var col = ElementBuilder.builder("div").withAttribute("class", "col-xs-12").build(), table = ElementBuilder.builder("table").withAttribute("class", "zebra").build(), tbody = document.createElement("tbody"), backlog = Saver.load("backlog"), userName = location.pathname.substr(1).match(/[^\/]+/)[0]; for(var id in backlog) { tbody.appendChild(ElementBuilder.builder("tr") .withChild(ElementBuilder.builder("td") .withAttribute("style", "width: 1%;") .withChild(ElementBuilder.builder("picture") .withAttribute("class", "game") .withAttribute("alt", backlog[id].title) .withChild(ElementBuilder.builder("img") .withAttribute("src", backlog[id].img) .build()) .build()) .build()) .withChild(ElementBuilder.builder("td") .withAttribute("style", "width: 100%;") .withChild(ElementBuilder.builder("a") .withText(backlog[id].title) .withAttribute("href", "https://psnprofiles.com/trophies/" + backlog[id].url + "/" + userName) .build()) .build()) .withChild(ElementBuilder.builder("td") .withChild(ElementBuilder.builder("button") .withText("delete") .withAttribute("class", "red button") .withAttribute("gameid", id) .withEvent("click", (event) => { Saver.remove("backlog", event.target.getAttribute("gameid")); event.target.parentElement.parentElement.remove(); }) .build()) .build()) .build()); } table.appendChild(tbody); col.appendChild(table); div.appendChild(col); } // helper functions class Saver { static set(sKey, key, value) { var item = Saver.load(sKey); item[key] = value; Saver.save(sKey, item); } static remove(sKey, key) { var item = Saver.load(sKey); delete item[key]; Saver.save(sKey, item); } static save(sKey, item) { localStorage.setItem(sKey, JSON.stringify(item)); } static load(sKey) { var item = JSON.parse(localStorage.getItem(sKey)); return item !== null ? item : {}; } } class ElementBuilder { constructor(type) { this.e = document.createElement(type); } static builder(type) { return new ElementBuilder(type); } withText(txt) { this.e.innerText = txt; return this; } withAttribute(name, value) { this.e.setAttribute(name, value); return this; } withEvent(event, action) { this.e.addEventListener(event, action); return this; } withChild(child) { this.e.appendChild(child); return this; } build() { return this.e; } } // page resolver if(document.getElementsByClassName("username").length===1 && document.getElementsByClassName("icon-sprite level").length===1){ profilePage(); } switch(location.pathname.substr(1,6)) { case "trophi": gamePage(); } And this I put very little effort into, and in no way tried to save a lot of space or anything. Yes, it doesn't add the trophies etc, which you can easily add with some few more lines and some math. Can't be arsed, but this is just to make my point. If someone wants to pick up from here, go ahead, have fun. Not even using jquery, which is a huge improvement IMO. Jquery is easy and definitely has it's place, but it's not good for performance, makes a lot of extra site requests and downloads images of the pages it loads etc. Edited September 8, 2019 by MMDE 7 Link to comment Share on other sites More sharing options...
Pumpkin Head Cthulhu Posted September 7, 2019 Share Posted September 7, 2019 On 9/5/2019 at 2:34 PM, HusKy said: Guide Added toggle button which allows you to hide already earned trophies on the page (available via Floating Menu) you got me at this, this is the only reason i still use PlayStationtrophies. they have a check box that lets you remove the trophies you have earned 1 Link to comment Share on other sites More sharing options...
Xyleh Posted September 7, 2019 Share Posted September 7, 2019 15 minutes ago, Void said: you got me at this, this is the only reason i still use PlayStationtrophies. they have a check box that lets you remove the trophies you have earned Have they added a feature that shows your profile automatically from PSN, or do you still have to add each game manually? Link to comment Share on other sites More sharing options...
Pumpkin Head Cthulhu Posted September 7, 2019 Share Posted September 7, 2019 12 minutes ago, dj_helyx said: Have they added a feature that shows your profile automatically from PSN, or do you still have to add each game manually? still have to add manually, but that does bot bother me, i just really like the checklist. Link to comment Share on other sites More sharing options...
KondeBra Posted September 7, 2019 Share Posted September 7, 2019 Is there a way to include info from trophy guides like time to complete or difficult? That would be great to choose the games I would play next. Great work by the way. Link to comment Share on other sites More sharing options...
HusKy Posted September 7, 2019 Author Share Posted September 7, 2019 5 hours ago, Archavia said: Impressive work. Will this work on Opera? Should work just fine. Install Tampermonkey for Opera and then follow instructions from the first post. 4 hours ago, mackenzie129 said: Checked it out (tinfoil hat) Used it loved it, need alphabetical sorting along with platform icons please and thank you but will use stay sexy @HusKy Platform icons are available in the backlog. Did you mean filtering by platform? This will be added soon. 3 hours ago, KondeBra said: Is there a way to include info from trophy guides like time to complete or difficult? That would be great to choose the games I would play next. Great work by the way. This would be a nice addition. Currently, I only scrape the page itself for the info and this would required multiple HTTP requests to be done. I will keep this in backlog for later. Link to comment Share on other sites More sharing options...
mackenzie129 Posted September 7, 2019 Share Posted September 7, 2019 (edited) 9 minutes ago, HusKy said: Platform icons are available in the backlog. Did you mean filtering by platform? This will be added soon. excellent you understood the stupid I was typing, though loving it. Will our backlogs stay in tact? Edited September 7, 2019 by mackenzie129 Link to comment Share on other sites More sharing options...
Spinosaurus Rex Posted September 7, 2019 Share Posted September 7, 2019 (edited) I've joined testing the script, great job obviously. But I have question about the "country highlight" function, when you enter the leaderboard of any game, small typebox in upper-left corner change to "Country highlight:" and there's also LEADERBOARD (HIGHLIGHTED: 0). What it is supposed to show? Edited September 7, 2019 by Spinosaurus Rex Link to comment Share on other sites More sharing options...
mako-heart Posted September 7, 2019 Share Posted September 7, 2019 6 hours ago, MMDE said: If you are so good at code, can't you help Sly implement things so users don't have to make work arounds? 3 Link to comment Share on other sites More sharing options...
bjenn_x Posted September 7, 2019 Share Posted September 7, 2019 Nice initiative! 17 hours ago, HusKy said: The git repo I work in is hosted on GitHub and it's currently private. Any chance of making the repo public? I'm sure there are a bunch of people here that would love to contribute, it's also any easier way to track issues rather people commenting in this thread. It might also help to alleviate some security/privacy fears people may have if the code is open source. 1 Link to comment Share on other sites More sharing options...
stargate1995 Posted September 7, 2019 Share Posted September 7, 2019 (edited) Can already see this being really helpful. thanks for the addon and looking forward to what you might add in the future. My suggestion would be, if possible have the backlog page show the amount of trophies/points to be earnt remaining instead of the total amount for the game/s in question (assuming you have started the game of course). Edited September 7, 2019 by stargate1995 Link to comment Share on other sites More sharing options...
GraniteSnake Posted September 7, 2019 Share Posted September 7, 2019 @HusKy could this be used with a secure browser? I use the one that you can download with the free Avast antivirus. Link to comment Share on other sites More sharing options...
MMDE Posted September 7, 2019 Share Posted September 7, 2019 3 hours ago, mako-heart said: If you are so good at code, can't you help Sly implement things so users don't have to make work arounds? Sly runs this as a one-man show AFAIK. Link to comment Share on other sites More sharing options...
MMDE Posted September 8, 2019 Share Posted September 8, 2019 (edited) Another thing I do wonder about is how many requests this script does? Also, when you use jquery to process requested pages, beware it tends to load a lot of extra stuff too, to load the page properly. This is often not necessary. Also, certain requests will likely be declined if you have installed some ad blocker, because people may have usernames with the word "ad" in it etc. I really hope it spams the web site as little as possible. Edited September 8, 2019 by MMDE Link to comment Share on other sites More sharing options...
Popular Post Chocolat_GiddyUp Posted September 8, 2019 Popular Post Share Posted September 8, 2019 (edited) Great work @HusKy, you work ethic and initiative is an inspiration to me. @HusKy @BlindMango @B1rvine = The real professional, decent people who should be running this site. Site owner doesn't give a shit anymore, lost his passion. Doesn't communicate with the site's users. @HusKy proves that in life you shouldn't wait for others to change something, you got to do it yourself. Edited September 8, 2019 by No It Was My Cousin 10 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now