I want to modify this constant value from a JavaScript file from 
https://ai.glossika.com/app/progress using a Tampermonkey script:
const isUpgradeRequired = isMeReady && paidCourse && !isQa && !isOnTrial && 
!isSubscribed && !payFrom; 

I want to make a userscript that attempts to bypass the paywall by setting 
isUpgradeRequired to false:
const isUpgradeRequired = false; 

I tried to use this script, but the paywall is not removed:
var bypass = "const isUpgradeRequired = false;" var code = 
document.createElement('script'); 
code.appendChild(document.createTextNode(bypass)); (document.head || 
document.body || document.documentElement).appendChild(code); 

I typed in "isUpgradeRequired" into the console, and it returned false. 
What went wrong in my userscript?

-- 
You received this message because you are subscribed to the Google Groups 
"greasemonkey-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to greasemonkey-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/greasemonkey-users/96312330-2351-447e-a1bd-64605568cdd7n%40googlegroups.com.

Reply via email to