Infinite scroll [optional]. Preview for private videos. Filter by Title, Duration, Quality and Public/Private. Sort by Duration and Views. Private/Public feed of friends uploads. Check access to private vids. Mass friend request button. Sorts messages. Download button 📼
< Feedback on ThisVid.com PervertMonkey
Firemonkey is a piece of shit and I'm not going to support it.
It fails to run my library properly, it doesn't throw errors in console and therefore it's tundebuggable and a minor issue - it doesn't support inline code like this:
// @require data:application/javascript,var core = window.pervertmonkey.core || pervertmonkey.core; var utils = core;
Summarized: delete firemonkey and use real userscript manager like violentmonkey.
Though if you somehow fix this shit for me, I'll will gladly approve your contribution.
Hi Ive got a fix
Remove
// @require data:application/javascript,var core = window.pervertmonkey.core || pervertmonkey.core; var utils = core; and add if (typeof GM_addStyle === 'undefined') {
window.GM_addStyle = function (css) {
var style = document.createElement('style');
style.textContent = css;
document.head.appendChild(style);
};
}
var core = window.pervertmonkey.core || pervertmonkey.core;
var utils = core; immediately after the metadata block.
Add @inject-into page into the metadata block (since the overlay doesn't appear without it.
can't vouch for whether that changes anything on tampermonkey/violentmonkey though, so worth checking before flipping it for everyone.
Heres the code again for better visibility
if (typeof GM_addStyle === 'undefined') {
window.GM_addStyle = function (css) {
var style = document.createElement('style');
style.textContent = css;
document.head.appendChild(style);
};
}
var core = window.pervertmonkey.core || pervertmonkey.core;
var utils = core;
Wow, thank you! Seems like @inject-into page fixes everything and it doesn't hurt other userscript managers, though tampermonkey do not support it.
But the problem is GM_addStyle will be undefined since @inject-into page enabled, unless we manually add it.
Maybe there are some other options.
My scripts are generated with this pipeline https://github.com/smartacephale/sleazy-fork/blob/main/build/vite.build.userscripts.ts and while I can do as you suggest, I don't like it.
We can do this:
// @inject-into page
// @require https://greasemonkey.github.io/gm4-polyfill/gm4-polyfill.js
var core = window.pervertmonkey.core || pervertmonkey.core;
var utils = core;
Tested the gm4-polyfill version and it works. Thank you for taking my suggestions and making them better.
Can you make this userscript compatible with Firemonkey? Thanks!