List of Scripts

The ghost number appears to be attached to specific study session (not total), I don’t have a summary unless I do a review:

Ex. Open summary

If I do a review, it’s now actively charted. So seems I have to complete reviews in order to build my ghost level.


image

i’ve found the number of reviews forecast good enough on Bunpro, though it’s definitely useful to see the apprentice count.

2 Likes

Ok, the issue is that you did not have ghost reviews, tomorrow I’ll upload a fix tomorrow (It’s 23:10 PM here)

1 Like

The Example Sentences Audio script has been fixed with a patch from @blacktide. Thanks!

2 Likes

@pcontrabass Hey, I see that you are using the waitForKeyElements library script in your planner. This seems to have been removed from Greasyfork. You will probably want to address this

I unfortunately don’t have time to maintain this anymore.

If you want to take over maintaining it, or contribute a fix, contributions are welcome.

1 Like

I’m not maintaining my Bunpro scripts either. It broke some of my WK scripts, though, and I noticed that your was also using it as I was going through mine. If this breaks it and anyone else wants to look into fixing it, they know where to start, at least

Some of the scripts dont work for me

2 Likes

Hey, @Akashic , first of all, welcome to the forums! The scripts are made (and maintained) by fellow users of BunPro. Sometimes this means that they aren’t maintained after a while. Furthermore, with the recent plethora of changes on the BunPro site this can break some scripts. They might get fixed if the original creator wants to keep maintaining them, or they might be broken from now on. All I can say is, keep an eye out for any updates on the scripts you want, and I hope for you they get updated!

1 Like

The JLPT Percentage Script wasn’t working again, even with the update 7 days ago.

newly fixed JLPT Progress Percentages script
// ==UserScript==
// @name         BunPro: JLPT Percentage
// @namespace    http://tampermonkey.net/
// @version      0.2.7
// @description  Adds percentages to the progress bars.
// @author       Kumirei
// @include      http://bunpro.jp/*
// @include      https://bunpro.jp/*
// @include      http://www.bunpro.jp/*
// @include      https://www.bunpro.jp/*
// require(deleted)      https://greasyfork.org/scripts/5392-waitforkeyelements/code/WaitForKeyElements.js?version=115012
// @require      https://gist.github.com/raw/2625891/waitForKeyElements.js
// @grant        none
// ==/UserScript==

(function() {
	$('head').append('<style id="BunProPercentageScript">' +
					 '    .profile-jlpt-level .progress .percentage {' +
					 '        position: absolute; '+
					 '        left: 50%;' +
					 '        line-height: 15px;' +
					 '        transform: translate(-50%,0);' +
					 '        text-shadow: 1px 0px black;' +
					 '    }' +
					 '</style>');
	waitForKeyElements('.profile-jlpt-level .progress-bar', function(e) {
		var percentage = String(Math.round(e.attr('aria-valuenow')*10)/10) + "%";
		$(e[0].parentNode).append('<span class="percentage">' + percentage + '</span>');
	});

	waitForKeyElements('.profile-jlpt-level', function(e) {
		if (!$('.profile-jlpt-level.total').length) {
			var bar = $('.profile-jlpt-level')[0].cloneNode(true);
			bar.className += ' total';
			$(bar).find('.percentage').remove();
			bar.childNodes[1].innerText = "Total";
			var barelem = $(bar).find('.progress-bar');
			var total = 0;
			var learned = 0;
			$('.progress-count').each(function(i, e) {
                if (e.childNodes[0].textContent.includes("Level Progress")) {
                //if (e.childNodes[0].textContent.startsWith("\n")) {
                    return;
                }
				var counts = e.childNodes[0].textContent.split("/");
				total += Number(counts[1].trim());
				learned += Number(counts[0]);
			});
			barelem.attr('aria-valuenow', learned/total*100);
			barelem.attr('style', 'width: ' + learned/total*100 + '%;');
			$(bar).find('.progress-count')[0].innerText = String(learned) + '/' + String(total);
			var lastbar = $('.profile-jlpt-level');
			$(lastbar[lastbar.length-1]).after(bar);
		}
	});
})();

This is based on my older fix from here, i just had to replace the require link because the waitForKeyElements script was deleted from greasyfork.
Maybe this also fixes other scripts.
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js

@Kumi i know you tried to get rid of waitForKeyElements, but somehow it doesn’t work with the waitForSelector replacement. I tried debugging it and replacing only waitForKeyElements or your other changes, but somehow i couldn’t get anything to work, seems like i got lost in debugging.
With your version i get TypeError: e.attr is not a function (in barelem.attr).

3 Likes

Yeah, it’s not a good fix. I’m working on something better and will update it once I’m done

@Akashic what I’m working on will most likely fix some of your scripts too

1 Like

The “copy sentences” script doesn’t work anymore. :frowning:

2 Likes

@oreoreo Yeah, a couple of weeks ago something happened which caused a lot of my scripts to break. I just published an update, though. Please tell me if it works for you

@Akashic Hi, I published some fixes to a bunch of the scripts today. Please let me know if it works for you

@Saimin Hey, as I told the others, I just published a bunch of fixes. Please tell me if the JLPT Percentage Script works again

4 Likes

The one I want mainly to work is Auto show info jisho button mistake delay and bunpro toolbox but they still dont work for me

1 Like

The toolbox is not mine, you’ll have to talk to @Ambo100 about that one.

The other three are mine, however, it turns out I had missed updating a part of those. Can you please update to version 0.2.7, 0.5.9, and 0.2.7 respectively and see if that works for you

1 Like

So I just pressed update to whatever version to update to then I reinstalled it, is that the right way of reinstalling it?

1 Like

Yep. Although sometimes GreasyFork doesn’t give you the right version for a while after I upload it. So if it is still not working (after updating again after my second post) it’s worth checking that you have the correct version

1 Like

Alright because for some reason it wont update to those versions, like for version 0.5.9 its stuck on 0.5.8

1 Like

Ah. We’ll just have to wait for a bit then until it gives you the right version. Could take a few minutes or a few hours.

An alternative is going to the Code tab on GreasyFork and copying the code manually into your Tampermonkey installation

1 Like

Alright, I will try that.