json-rules-engine
tampermonkey
Our great sponsors
json-rules-engine | tampermonkey | |
---|---|---|
6 | 26 | |
2,441 | 3,882 | |
- | 6.6% | |
6.7 | 0.0 | |
3 months ago | about 1 month ago | |
JavaScript | JavaScript | |
ISC License | GNU General Public License v3.0 only |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
json-rules-engine
-
How should I test this function? Should I test all possibilities? Like hasDescription = true and hasExperience = true should return true. hasDescription = true and hasSkill = true should return false
If you find yourself needing to do alot of these profile matching functions I would recomend building either a mini-rules interpreter or using something like this https://github.com/CacheControl/json-rules-engine to do the matching for you.
-
conditionals in plain json?
Maybe you're looking for something like a JSON based Rules Engine (look at this and this).
- How do you think a large game (World of Warcraft for example) handles storing their quest data?
-
Chrome.scripting
it just seems so trivial to me too build a small interpreted system that circumvents the "no dynamic JavaScript" rule. so so so trivial. so the only people hurt are the regular humans.
there was a simpler example on hm within the last week or two, but for example, json-rules-engine demonstrates how json might be a dynamic program, without ever needing to call eval or Function dynamic code: https://github.com/CacheControl/json-rules-engine
this would need to be extended with some html constructs. which is certainly possible.
or take evaljs and preload in some html functions!
> You might be working in a JavaScript environment where eval() isn't allowed (and you have a genuinely good reason why you want to use it). Maybe this'll slip under the radar.
https://github.com/marten-de-vries/evaljs
surely the people pitching these so called security measures grok just how many dump trucks of nonsense these so called protections they offer us are.
I believe they want to do something good too. but they are ineffectual & doing amazing amounts of damage in their grasp to go us this pretend fake security.
-
It's true
Interesting! Is this repo sort of a similar concept then?
- Ways to execute user input/scripts
tampermonkey
-
Show HN: Sniper: A Manifest V3 web extension for dynamic user specified actions
This extension makes use of JS computed property names to perform user specified dynamic actions on user specified elements.
I started working on an extension primarily for my own very specific use case. I knew of Tampermonkey and it's relatives before, but hadn't used it extensively. I also was following the news of MV3, so wasn't sure of their long term viability. But more than anything having recently got into frontend development I also just wanted to build an extension myself, getting to understand the newer limitation and alternatives was just a bonus point.
Literally a couple of days ago I got to know (From HN nonetheless https://news.ycombinator.com/item?id=38526277) that userscripts are going to be allowed in MV3 too, so I finally decided to actually check out ViolentMonkey, which is pretty neat, but from the looks of it would have to migrate to `chrome.userScripts.register` which would eventually require `userScripts` permission and with it would need [developer mode enabled](https://developer.chrome.com/docs/extensions/reference/api/u...). While browsing through the subsequent discussions I saw there were many other alternatives for dynamic script execution, from creating and the dynamic code to `` tags to using `evaljs`, but I wasn't aware of them while building this (see for ex: <a href="https://news.ycombinator.com/item?id=31425256">https://news.ycombinator.com/item?id=31425256</a> and <a href="https://github.com/Tampermonkey/tampermonkey/issues/644#issuecomment-857838249">https://github.com/Tampermonkey/tampermonkey/issues/644#issu...</a>) (and tbf it wan't even my goal to get full JS execution in my extension).<p>Long term my goal was to build a small JSON config for the actions needed and parse and apply them to have the desired behavior. I also was planning on exposing some extension only behavior (like tab functionality) via message passing with service workers (The config could be something like
-
If your Firefox suddenly started to hang or become extremely slow today, check if you have tampermonkey 5.0. Disable it for now as it seems to be the culprit.
Do you use "Never Remember History"? There are bug reports about it. Fix is soon to be released.
-
Ever since today my browser stopped working
Yes, I'm having the exact same problem. It was updated on Nov. 30 and I can't find a way to downgrade back to the last version. There's been several issues posted on the tampermonkey github recently but I don't have enough technical knowledge to know if any of those issues applies to this problem. And just like you, I can't even see my scripts to move them to a different script manager.
-
Tampermonkey: Dev Mode will become mandatory for running userscripts in Chromium
I have no damn idea why Tampermonkey, which as very best I can tell is closed source <https://github.com/Tampermonkey/tampermonkey/blob/master/REA...>, is on the "blessed" Firefox for Android list when Violentmonkey <https://github.com/violentmonkey/violentmonkey#readme> is MIT, although I readily admit doesn't it have a "politically correct" name
-
How can I create a self hosted tampermonkey?
I use it a lot and it used to be on github until version 2.9. I guess I could use that but wondering if there are some other nice selfhosted versions where I can easily modify my Chrome webpages that I should consider.
-
umm..."Introducing Tam, your helpful assistant", Tampermonkey's v4.19 opt-out (should be opt-in) 'feature'. Thoughts?
I want to chime on that as it's worth noting that Tampermonkey is no longer open source. I mean it's like that for years - its GitHub repo clearly stands it's just an archive version and commits there date back to 2018. Here's one of the first posts when author went proprietary license and started gaining data (with his comment btw) and technically there's also Security section in FAQ and full Privacy Policy. Also FWIK website is the only place you get info about changes - highlighting that to stop looking for insights on GitHub.
-
Tampermonkey extension
If you can't the answers you're looking for in the Tampermonkey FAQ, you can ask them in the official Tampermonkey support forum.
-
Weird cookie behavior
Tampermonkey devs have implemented it but didn't release it yet and Violentmonkey devs don't want to implement it, so I guess I'm not fixing this issue anytime soon.
-
badfilter with dynamic filters?
Specific case: uBlock Origin seems to block TamperMonkey from either injecting or running my userscript. (See https://github.com/Tampermonkey/tampermonkey/issues/1709 ) I was thinking it might be one of the above rules but I can't really get much out of the logger, and trying to disable those rules doesn't work. Does anyone have an idea on how to progress?
-
Firefox Android now supports tampermonkey
https://github.com/Tampermonkey/tampermonkey/blob/master/COP...
this says GPL so unless they update their license file here, this stays
What are some alternatives?
Easy Rules - The simple, stupid rules engine for Java
violentmonkey - Violentmonkey provides userscripts support for browsers. It works on browsers with WebExtensions support.
RulerZ - Powerful implementation of the Specification pattern in PHP
uBlock - uBlock Origin - An efficient blocker for Chromium and Firefox. Fast and lean.
rules - Durable Rules Engine
chrome-extensions-samples - Chrome Extensions Samples
NRules - Rules engine for .NET, based on the Rete matching algorithm, with internal DSL in C#.
browser_extension - A browser extension that redirects popular sites to alternative privacy friendly frontends
RulesEngineEditor - Editor for Microsoft RulesEngine - Blazor UI library intended for integration in Web or Desktop
libredirect - A browser extension that redirects popular sites to alternative privacy friendly frontends [Moved to: https://github.com/libredirect/browser_extension]
Redirector - Browser extension (Firefox, Chrome, Opera, Edge) to redirect urls based on regex patterns, like a client side mod_rewrite.