Giter Club home page Giter Club logo

npu's People

Contributors

danihorvath avatar feaxr avatar kokan avatar majzer avatar mszgs avatar qtlunya avatar solymosi avatar whisperity avatar zomborid avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

npu's Issues

Multiple stored courses with priority

Hello!
I think this can be a good feature to add ability to store multiple lessons for one subject with priority (1,2,3, etc), and when the user clicks the pick up button it tries to pick up the first, if it fails it tries the second etc. So if teher are multiple times that are appropriate for the user it is faster if there is an error, check the box again and click the button.

Kérdőív értesítés elrejtése

Jó lenne egy olyan opció, hogy a minden bejelentkezéskor megjelenő "Önnek kitöltendő kérdőíve van" felugró ablakot el lehessen rejteni. uBlock Origin-nel megoldtam, de esetleg NPU-ba is bele lehetne írni.

not working intallation

Szia!
Nekem olyan gondom lenne hogy Chromeban és firefoxban is miután felraktam a tampermonkey-t és azon belül telepítem a scriptet azt elfogadja, de utána hiába megyek neptunra ott azt írja nem fut egyetlen script sem.
Mit csinálok rosszul?

crash on first start

The "loadLastPage" function crashes if there is no saved last page yet in the storage.

Drop out

A neptun amint beléptem az órarendtervezőbe kidobott a bejelentkezési képernyőre, semmilyen hiba üzenetet nem kaptam.

Új Neptun captcha megoldása automatikus bejelentkezéshez

Egy pár hete egy új funkció került a Neptun bejelentkezéshez (csak néhány egyetemen egyelőre, de gondolom szépen lassan minden egyetem meg fog jelenni), mégpedig egy captcha, ami miatt nem működik az automatikus bejelentkezés.

Fork-oltam a repo-t, és a TrueCaptcha API használatával megcsináltam, hogy a neptunkód és jelszó mellett a captcha-t is kitöltse a script automatikusan.

(A truecaptcha nem egy ingyenes szolgáltatás, de nevetségesen olcsó, így nem gondolnám, hogy az embereknek ez a része gondot okozna. 1$-ért cserébe 3000 captcha-t old meg, amit szerintem egy átlag egyetemista a teljes egyetemi képzése alatt sem használna fel)

Lenne rá igény, hogy csináljak egy PullRequest-et és bekerüljön ez is a többi hasznos funkció mellé?

Nem működik az automatikus kiléptetés megakadályozása

Sajnos valamilyen okból kifolyólag az utóbbi időben (nem tudom pontosan, de augusztusban már biztos tapasztaltam) nem működik megfelelően az automatikus kiléptetést gátló mechanizmus és ugyanúgy kidob, ha x ideig tétlen maradsz. Károlis Neptunról van szó az esetemben, tavaszi tárgyfelvételnél még nem volt ilyen probléma.

Neptun órarendtervező

Vizsgafelvétel kezdete előtt nincs lehetőség a vizsgaidőpontokat órarendtervezőbe adni. PPKE neptun.

Subscribe for email notification if more free places were added to a course

It is quite frustrating when a course gets full, so when the study department adds some free places, you don't want to miss it. It would be great to have a feature where you do not have to check the course frequently, but rather get a notification about the newly added free places.
Is is possible to implement into the npu project?

HU: Feliratkozás kurzus-férőhely kibővítésről szóló értesítésre
Elég zavaró tud lenni, ha tárgyfelvételkor egy kurzus betelik, ezért amikor előfordul, hogy utólag a tanulmányi osztály kibővíti a férőhelyeket, nem kéne lekésni. Nagy segítség lenne, ha nem kellene rendszeresen nézegetni a neptunt, hanem emailben értesítene a kurzus kibővítéséről. Ez vajon megvalósítható az npu-n keresztül?

Bring an option to switch between languages

My curriculum is mixed between English and Hungarian. So I often use Language-Switching-Feature in the header of Neptun. However, Header-Remove-Feature removed the banner, so I no longer can access this.
Can you add a drop-down menu in the menu bar? Or a floating button to change the language?

Restructure code for version 2.0

Ideas for improving code quality:

  • Convert tabs to spaces, remove trailing whitespace.
  • Use ES5 features instead of the corresponding jQuery helper functions (e.g. $.inArray).
  • Don't use $ for data storage by setting random properties on it (e.g. $.examSubjectFilterCache or $.examListSubject).
  • Break source code out into multiple source files and use a preprocessor to generate the final script. Possibly minify it too, though that may decrease the trust in potential users that they aren't installing something malicious.
  • Implement a small framework for splitting up functionality into separate, independent modules. Prevent modules from interfering with each other. Create a globally accessible place for generic helper methods. Have the page detection logic as part of the module framework. This will later allow us to let users selectively enable and disable specific features of the script.
  • Refactor user data management functions getUserData and setUserData to make the parameterization more trivial.
  • A common theme throughout the script is the use of a timer and a data-* marker to detect when Neptun reloads an element and reapply our enhancements if that happens. This could be extracted into a global function, which would set up the proper timers and markers and simply execute a callback function when it's time to perform the enhancements (again). Doing this would also let all enhancements share the same setInterval timer, improving performance. Example:
npu.enhanceElement("#h_markbook_gridIndexEntry_bodytable", function() {
  // this is called whenever the element is recreated by Neptun
}
  • Add a global function for easier injection of CSS styles. Example:
npu.injectCssRule(".termSelect li", {
  "display": "inline-block",
  "vertical-align": "middle"
});

I wrote a script to mark all mails as read if I press a button in the menu., if it helps, include it in

// ==UserScript==
// @name Neptun New Messages Auto Read
// @namespace http://tampermonkey.net/
// @Version 0.1
// @description try to take over the world, or just read the messages.
// @author Krachi9
// @match https://frame.neptun.bme.hu/hallgatoi/main.aspx?ismenuclick=true&ctrl=inbox
// @grant none
// ==/UserScript==

(function() {
'use strict';
var read = $('');
$("#function_delete0").after(read);
var scriptElem = document.createElement('script');
scriptElem.innerHTML = 'function readAll(){var newMessages = document.getElementsByClassName("Row1_Bold");for(var i =0; i < newMessages.length; i++){var link = newMessages[i].getElementsByClassName("link");link[0].click();var backButton = document.getElementsByClassName("ui-button");for(var j = 0; j < backButton.lenght; j++){if(backButton[i].value == "Vissza"){backButton[i].click();}}}}';
document.body.appendChild(scriptElem);
})();

Subject list header enhancements are sometimes missing

These controls are missing in some cases:

image

The reason seems to be a bug in Neptun, which is not universally reproducible: as soon as certain users (even with NPU turned off!) change the number of items displayed using the dropdown in the header, the entire pager table vanishes (though the display does get applied to the subject list). The user who reported this only had 67 subjects in the list, so the bug might be related to not having enough subjects.

Nem lehet belépni amíg az npu aktív

Ha kikapcsolom a scriptet be tudok lépni, és ha ezután benyomom a scriptet és újratöltöm az oldalt akkor teljesen jól működik az egész. 2-3 napja jelenhetett meg ez a probléma, korábban sose volt ezzel gond. Firefoxot használok.

Automatic course selection

[feature request]
After 2 semesters of my MSC, I still have to change the course from BSC at every login. Could NPU remember my last selected course and change to it automatically?

Teljesült féléves speciális indexsorok zöld háttérszíne

Sziasztok!

Bele tudnátok tenni kérlek a következő release-be, hogy ne csak a féléves indexsorok, hanem a speciális féléves indexsorok teljesült tételei, tárgyai esetén kapjanak zöld háttérszínt?
#h_markbook_gridSpecIndexEntry_bodytable tr.SubjectCompletedRow td {
background-color: #D5EFBA !important;
}

Várom a visszajelzéseteket, köszönettel:
Ákos

Mark multiple mails as read

Please make an option to mark selected mails as read. It is very annoying that I have to open each mail separately, even if I've already read them in my emails. It's very hard to organize Neptun messages, I already have 44 unread, and when a teacher submits 30 exam dates by accident, I get 30 mail notifications (happened before). So this would be a very useful feature. Thanks!

Vizsgatárolás funkció nem működik

Tampermonkey hibaüzenet: Limited runtime host permissions might break some Tampermonkey features like script update, GM_xmlhttpRequest and others!

Minden webhelyhez engedélyezve van az elérése, ennek ellenére nem tűnik el a hibaüzenet. Az összes funkció közül csak a beérkezett üzenetek elolvasását lehet mellőzni, a többi funkció nem működik.

ELTE Neptun

Exam list filtering

I looked into the issue and figured out some problems. Just as I said in #1 , the whole "How Neptun handles the filter listbox" thing must be totally overridden by NPU because when a filter happens, the whole listbox gets recreated - and if we use the listed exams as data for the filter, after the filtering, there will be only one subject, the currently filtered one, in the listbox.

What could be done is this: for every semester or filterExams change, scrape the list of subjects once and create the filtered listbox, then somehow use that, without allowing Neptun to recreate it!

Could you please elaborate the incosistencies you found in the filtering code?

Exam classification not working on ExamList page

Not sure if this is a universal issue, but on this version the classification is not working, because the grade names are different. Jeles (5); Jó (4); etc. instead of Jeles; Jó; etc. .
I quickly fixed it for myself like this:

if (grade.indexOf("(") > 0) {
    grade = grade.substr(0, grade.indexOf("("));
}

If it looks good I can make a PR.

Build: 452 (2017.11.08.) P20171221

image

Option to filter for recommended semester

The course registration ("kurzusfelvétel") menu is always filled with a lot of courses that I might not want to see for now.
I think the main reason of it is 1) you see subjects for all semesters at once, including ones that you can't even apply to, and 2) there are always some subjects that appear more than once in the list

Would it be possible to make modifications to the subject list to mitigate these annoyances?

For the first one, I was thinking if an additional filter could be added to the existing ones, with a dropdown menu having all the options (semesters 1-6 + an option for those with no semester set). Though it can be a problem if as the user progresses through semesters they may totally forget about earlier subjects, so it might be better to always include earlier semesters and those with a recommendation set.
Also, it might be even better if completed subjects could be filtered out too.

For the second one, it might be wiser to know why are they duplicated before just filtering the dupes out. Do you (or anyone reading this) have information on this?

If this is a lot of work, tell me and maybe I could try to do these myself, I was recently experimenting with userscripts anyways.. :D

Disable "Studies" automatically jumping to index for Vimium

With Vimium, navigation is easier because pressing f will generate jump keys which you can use to "click" on elements. For example, "clicking" the menu for "Personal data" brings the dropdown, after which f and another sequence can take you to the page.

Typing in f ea here:
image
will bring the menu down properly, after which another f renders the new set of keys:
image

Whereas doing f ga or f cc will immediately jump, because "Studies" is clicked.

However, this is broken by the fact that simply "clicking" on "Studies" will jump to the index, without pulling the dropdown, as the dropdown is only there on the hover action now.
This makes the jump to target feature of Vimium useless...

I'm not sure if one could reasonably detect from within NPU that a browser addon is installed/running, so a checkbox that disables these "shortcuts" (preferably off by default, because it's highly unlikely that non-IT people will use something like Vimium...).
Same applies for the "subjects" going to registration and "exams" going to registration, too.

"Take exam" subject dropdown isn't coloured properly

The issue mentioned by me in #21 was not fixed by #22.

I have some exams already subscribed to, but the subject dropdown shows all but one in white, and only one in yellow.
(The subjects which don't have any exam posted are properly removed from the list.)

doesnt work

Hi,

Neptun powerup is not working. I had tampermonkey and neptun powerup script downloaded. Also, java is enabled, I don't know if that's important. I don't know if that could be an issue.

Thanks in advance!
Petra

Exams errorneously reported as completed

User report:

Vizsgajelentkezés lapon zöld színnel (azaz teljesítettként) jelöli azokat a tárgyakat, amik korábban már fel voltak véve, azonban nem lettek teljesítve. Mivel automatikusan a Teljesített tárgyak elrejtése volt beállítva, majdnem lemaradtam a vizsgákról.

I'll try to repro in the meantime.

@whisperity Do you have an idea what's causing this?

Subject which is successfully passed but retake is subscribed gets hidden

  1. Take an exam. Get a passing grade.
  2. Because passing grade exists, the subject is marked completed, the hide filter filters all exams from it out.
  3. Sign up for another exam from the same subject (with the intent of improving your grade)

After this, the exam you signed up for will be yellow, and the subject in the drop-down will be yellow. This is expected behaviour.

Other exams from this subject in particular which you did not sign up for will be either green (because completed) or no highlight at all. (I cannot confirm which happens because we have a Neptun shutdown for the weekend. Will confirm later, if neccessary). This isn't that much of a problem, the good thing is that the exam you are retaking is properly highlighted.

However, when someone clicks Filter completed subjects, the following happens:

  • The exam rows from all completed subjects, including the one you are having a retake from, gets hidden.
  • However, the subject itself from the drop-down list does NOT get hidden at all. If the user filters to this subject in particular, they will get an empty list.

I think the fact that someone is having an exam from a subject not yet taken should override the "completed" factor when it comes to filtering. So in this retake case, the completion filter should not filter out any of the remaining exam dates from said subject.

Neptun órarendtervező

Akárhogyan is próbálom használni,, mindig azt írja ki, hogy az adatok betöltése nem sikerült, pedig 2 napja még működött teljesen jól. BME neptunon btw

Option to go to last URL on login

When the login timeout is reached and the user logs in again, it'd be nice if NPU could offer the option to open the last page instead of going to the home page.

OMHV reports endless loading loop

On the OMHV reports page, the script constantly tries to load the list but there's nothing to choose from the dropdown (just the default text). The page reloads, then the script attempts to load it again, and so forth.

Build: 455 (2018.07.19.) P20181010

Options + sign is hidden on "my exams" page

@solymosi Could you please apply the fix you did on the exam registration page to the "My exams" page too? (Route code 0402.) If an exam is registered but not yet graded (i.e. it has the yellow background), the [+] sign is hidden.

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.