violentmonkey / violentmonkey.github.io Goto Github PK
View Code? Open in Web Editor NEWWebsite of Violentmonkey
Home Page: https://violentmonkey.github.io/
Website of Violentmonkey
Home Page: https://violentmonkey.github.io/
Especially why we can't read local file system
height: 100%;
I see that the image becomes crisp, i.e. its height was initially incorrect.
This is particularly bad when there's a lot of text:
gatsby | original |
---|---|
On the Violentmonkey website the docs for run-at
don't include document-body
:
https://violentmonkey.github.io/api/metadata-block/#run-at
As this appears to be supported (it's in the settings tab) it should presumably be documented.
software | version(s) |
---|---|
Browser | Firefox 58.0.2, Waterfox 56.0.4.1 |
Operating System | Linux (Arch) |
This addon looks awesome, but I got the wrong impression from the FAQ:
I only noticed the detail for the clipboard FAQ because I accidentally clicked it. And I've only just noticed, while writing this up and figuring out what rule is hiding the arrows, that there's also an important detail for the sync FAQ...
This is the offending rule:
summary {
display: block;
}
(I assume that the hidden arrows are accidental, since they're displayed correctly in a Chromium derivative, but I'm wondering if it's a good idea to hide the details at all, given that they address serious privacy concerns. I was going to write the addon off as dangerous (at best) until I read the detailed explanation for the GM_setClipboard
permission (which I wasn't aware of in Greasemonkey).)
Is there a handson simple wiki to wrote down violentmonkey scr ?
This is my userscript, which requires 2 files being server by my local http server:
// ==UserScript==
// @name Readability
// @namespace Violentmonkey Scripts
// @grant none
// @require http://localhost:8000/Readability.js
// @require http://localhost:8000/Readability-readerable.js
// @version 1.0
// @author -
// @description 18/01/2024, 21:46:01
// ==/UserScript==
let documentClone = document.cloneNode(true);
/*
Only instantiate Readability if we suspect
the `parse()` method will produce a meaningful result.
*/
if (isProbablyReaderable(documentClone)) {
let article = new Readability(documentClone).parse();
document.body.innerHTML = article.content;
}
I've included some console logs in the Readability.js file, but they don't make it to my Console!
https://violentmonkey.github.io/api/gm/#gm_info
It mentions info.script.resources
, but not require
.
The title should be the title
specified at the beginning of each md file.
The main page has confused me every time I opened it, scrolled down, and clicked the browser icon to download the extension. Instead it just opened the png file.
I think a good solution would be to show the Get it page instead of "Supported Browsers" block.
I tried doing it with gatsby-remark-embed-markdown, but failed.
Maybe there's a better method, I just don't know.
As for the image links, the simplest workaround would be to use html:
- <img src="../src/assets/alternatives/greasemonkey.png"/> Greasemonkey
- <img src="../src/assets/alternatives/tampermonkey.png"/> Tampermonkey
After learning about why VM.url does not work on Violentmonkey, I've noticed a lot of other bugs listed in the VM repo with similar issues and answers.
Should there be a section for My script works in other userscript managers but not Violentmonkey
?
The blog has this article: How to edit scripts with your favorite editor?
However I found it quite confusing - it took me a long time to figure out how to get VM to sync. And quite weird - why do we need to be told you can edit javascript with your favourite editor?
Would there be interest in rewriting and updating it? Or perhaps writing a completely new article, and leaving the old one in place.
I was considering doing that - but I don't want to start if the PR is just going to be rejected after I've done all the work.
To give an outline of how I'd update it:
@require
option for local development.Would such contribution be welcome?
And what would be the preferred way - write a completely new article, or change/rewrite the old one?
I understand that there may be issues with copying and modification (#16). However (assuming you don't want external contributors or have a CLA process), would it be possible to release non-JS components under, e.g., CC BY-ND 4.0? It's still a socially useful function to reproduce verbatim copies.
I'm unsure if CC BY 4.0 § 3(a)(1)(A)(ii) would require a copyright notice on every webpage from which the work is derived, but that might be worth looking into with a lawyer, if you want that sort of protection on a free license.
Also, if you do somehow want to accept contributions for the website, the Fiduciary License Agreement might be worth looking into with a lawyer.
(And a lawyer I am not. None of this post is legal advice.)
The Get it / Get started page lists Mozilla Firefox as a Chromium-based browser.
However, Firefox is not Chromium-based, never has been.
I am thinking about making the source code of this website private, because I found someone copied Violentmonkey, changed its name, added ads, and released as a new add-on. What's more, they copied the whole website and did the same with it.
Violentmonkey has a license of MIT, so it's OK to be modified and republished. But the website is not.
References:
The definition of document-end
in our docs is incorrect as we switched from DOMContentLoaded
to document-end
of extensionTypes.RunAt.
According to MDN, document-end
now means document.readyState = 'interactive'
, aka. the document finishes parsing but resources like <script defer>
might still be loading. However, DOMContentLoaded
only happens after <script defer>
are loaded.
I believe it would be useful to have RSS feed for the Blog page https://violentmonkey.github.io/posts/ .
The posts there are few but all very useful and important, must-read.
If it helps, this guide says you can just:
_config.yml
file<link rel="alternate" type="application/atom+xml" title="Violentmonkey’s blog" href="/feed.xml">
<a class="btn btn-rss" href="/feed.xml" target="_blank">RSS</a>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.