Customize the theme/colors of the TorrentBD website. Supports both light mode and dark mode.
Dit zijn versies van het script waarin de code is bijgewerkt. Alle versies tonen.
Added an option to show a qr code in the share page. This way, custom themes can be quickly moved to mobile devices. This button is not visible on phones.
Updated the js and html of station a bit. The category filter doesn't show suggestions anymore.
Attempt to fix a vh related bug on chrome android. Let's see.
Fixed a hover issue on station css.
Updated the preview SVG a little to perform better on chromium.
Updated scrollbar CSS to support edge and chrome.
Updated how the strings work in the engine station.
Changed button text stark to button text hover as that makes more sense.
More color update. Legend, Star Uploader, and changed Wizard a bit.
Updated the colors of MVP and Wizard to not use gradient anymore. Gradient was causing some issues.
Changed night and day icons for the engine station.
Updated the error color for when you've already upvoted something.
With this version, the theme engine is practically complete. But there are several more things to do before publishing this.
Massive update on the engine station deployment code. It's not done yet, but renders fine for now.
Updated default dark colors a bit.
Updated the colors for sub heading in profile.
More curved corners for images.
Updated the border-radius of poll options.
Updated a minor mistake with color choice.
Update how the localstorage info is called into the variables.
Reworked the config page a bit. The about info are a little smaller in font, less text as well.It's now possible to change the default font of TorrentBD from the config panel.
Massive changes to the theme engine station. Though that code isn't here right now. For the code that's here, it's now possible to modify the color of the category images. Also revoked the previous changes to how localstorage was used for engine station.
Updated several color values, hover values, and updated how the FAQ section interacts.Also updated the engine station code. It will now load from localstorage by default and update the code in the localstorage automatically after loading is completed. So, each subsequent refresh loads the latest code without causing any delay for the user.
Updated the color of the spoiler button in forums.
Fixed button colors in the support section.
Updated some color values.
Updated menu text colors for mobile navigation.
Minor css updates to some buttons and button colors.
Added an active state declaration to all hover state declarations. This is because the hover state does not work on phones how it does on the desktop because there is no cursor. The usual hover state is slow to appear and sometimes will not appear at all if the page is redirecting. The active state is quicker and reacts to taps well. The experience on the desktop site should remain the same.Added a return clause to the pendulum to hopefully speed up the brute forcing.Updated the default themes for light and dark a bit.
Some changes to the default colors. 12 instead of 10 now. I might be making some radical changes in the following versions.
Updated how the theme loading works. Simplified the JS conditions a bit. Theme set to dark at the start of the script if no theme already found in localStorage.
Updated the color values for nav buttons in mobile view. Updated transition delay for kuddus search.
Swapped sessionStorage with localStorage and added a version number to the engine station. Now the engine station will only refetch the source code when the version number updates. Otherwise, it will simply display from localStorage.
Increased the brute forcing pendulum interval from 1 to 10.
Added some scroll margin top.
Rearranged things a bit. Dark theme is default in the main instance.
Updated the hr color for light mode.
I don't really know what I changed. Must not be anything important. Check against the last version to confirm.
Updated button color for H&R.
Minor changes to the button border CSS.
So the last thing I tried to fix the delay on phone worked. It basically brute forced the CSS into the head regardless of whether the head existed or not, and once the head finished loading, it stopped the brute forcing, added the CSS properly at the end of head, and then deleted any CSS previously inserted with the brute forcing tactic. This isn't the nicest solution, but it's working.With this version, several color values are updated. I've introduced button color and button color stark to allow more possibilities for future. Appearance remains unchanged. Also, the theme engine station where users can customize colors is now fetched from my github repo. The script stores everything in sessionStorage so that the loading time is not great for every refresh. This is different from localStorage because it expires every time the browser is closed. So, the value in sessionStorage will be updated once every time the browser is newly opened and the engine station is visited.
Updated background color of comments in the news section.
Another attempt to fix the mobile delay since the last effort didn't work.
Transition for buttons now 0.3s instead of 0.45s. New color changes.
Updated the button colors in the torrent download page.
The last update fixed the clash between mutation observer and onreadystatechange, but there was still a slight delay when using the script on my phone. I'm using a temporary CSS declare as fast as possible and then declaring it again after head has finished loading. The first declaration is then automatically cleared from head. This should fix the delay. I'll confirm on the next update.
So the mutation observer and the onreadystatechange functions don't work well together. That was causing some issues with my code ever since I implemented the mutation observer. I have reworked the arrangement of nearly everything. It should be fixed now.
Switched from observing document body to document title.
I'm putting too much energy into this. Heh.Updated colors and stuff for the search thingy.
Alle scriptversies tonen