Fuck-Yudao

Help you climb over the paywall for a so-called "Free & Open Source Software", built by someone who truly understand our generations duty. To you-know-who: *thank you*. China's OSS environment got much better because of professionals like you.

المؤلف
YKJus82rcd
التثبيت اليومي
14
إجمالي التثبيت
1,398
التقييمات
6 1 0
الإصدار
0.6
تم إنشاؤه
12-05-2024
تم تحديثه
20-08-2024
الترخيص
MIT
ينطبق على

One day your manager decided to adopt a "free and open source framework", then sent you a link pointing to one of (and yes, there are so many that some people even think it's normal) the most disgusting "open source scam" in mainland China...

One day your server-side engineer co-worker or friend recommended a "free and open source framework" to you, saying that it has every feature for every product...

One day your customer sent you a link to a repository with arrogant description of a yet not finished project with bugs, severe performance issues and over designed features that you won't need for the next 5 centuries...

Let's admit it, you must have been in one of those scenarios. And that link always opening a browser window with one disgusting rubbish you hope you never saw - Yudao 芋道.

On their web page they proudly wrote that it's our generation's duty to contribute to open source software. Yet their documentations are pay to view (and poorly written. An engineer with years of experience cannot even make professional written statements?). They proudly wrote that Yudao has the most features comparing to other frameworks but omitting the fact that those extra features are not even needed. They proudly wrote many more jokes, but you cannot read them since you have to pay first. It costs you CNY199 to acquire the permission for a major part of the documentation. Over 10 thousand people paid for this crap.

Things end now.

Enable this script.

Reclaim your freedom.


How to Use:

Simply enable this script.

Since everyone who installed this script must be a developer - in case the script fails to work, open the browser console. I exposed 2 properties attached to window. window.$$content holds the content that was supposed to show, window.$$replace() is a function that can be called to show the content.

If you find that the script works fine in some paths but doesn't work for some others - check the array in the 190 line of the source code to see if it contains the path that blocked you. Add the missing paths to that array will probably fix the issue.

How Does This Work:

It's simple. Like almost all the technical documentations, they use a static site generation (SSG) technique to generate a static website from their markdown files. All additional disgusting features (i.e. 3rd party authentication) were added via JavaScript afterward, which means the static website delivers the content as it supposed to be, then a later-added JS function checks if you are a poor, paid user. If not, the function simply removes document content from DOM. What I do is just save the nodes that will be removed and then add them back.