Skip to content

Instantly share code, notes, and snippets.

@Michcioperz
Created November 5, 2014 23:21
Show Gist options
  • Select an option

  • Save Michcioperz/852315027d5de16f18ec to your computer and use it in GitHub Desktop.

Select an option

Save Michcioperz/852315027d5de16f18ec to your computer and use it in GitHub Desktop.
bookmarklet do e-dziennika UONET+ liczący średnią ze wszystkich przedmiotów (trzeba wkleić jako URL zakładki)
javascript:(function(e,a,g,h,f,c,b,d){if(!(f=e.jQuery)||g>f.fn.jquery||h(f)){c=a.createElement("script");c.type="text/javascript";c.src="https://ajax.googleapis.com/ajax/libs/jquery/"+g+"/jquery.min.js";c.onload=c.onreadystatechange=function(){if(!b&&(!(d=this.readyState)||d=="loaded"||d=="complete")){h((f=e.jQuery).noConflict(1),b=1);f(c).remove()}};a.documentElement.childNodes[0].appendChild(c)}})(window,document,"1.11.1",function($,L){var%20s=0,l=0;$('.x-tmpl-cell[style="width:13%"]').each(function(){var%20t=parseFloat($(this).text());t>0&&(s+=t,l++)}),alert(s/l);});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment