Code Monkey home page Code Monkey logo

violentmonkey.github.io's People

Contributors

alexesprit avatar andrewsuzuki avatar axotot1 avatar codingthat avatar cyfung1031 avatar elstgav avatar gera2ld avatar johnveness avatar machsix avatar mbelsky avatar t1ml3arn avatar tophf avatar xpuls3 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

violentmonkey.github.io's Issues

Show contents of "Get It" in the main page

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

License

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.)

FAQ: Mention CSP issues?

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 FAQ hides the detail arrows

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:

Actual

Visible

Expected

Hidden

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).)

Local script development

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:

  • Remove the "Hey you can edit scripts in your favourite editor" part, or at least rephrase it - I fail to see how being told that has any value.
  • Update the screenshots where applicable.
  • Be painfully clear how sync works.
  • Include the @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?

How to debug a userscript with requires

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!

Add RSS feed to the Blog page

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:

  • add the GitHub pages plugin jekyll-feed to the plugins array in the _config.yml file
  • add this line in the head of the HTML file:
    <link rel="alternate" type="application/atom+xml" title="Violentmonkey’s blog" href="/feed.xml">
  • finally, make a link to the feed that is accessible from the page, like this:
    <a class="btn btn-rss" href="/feed.xml" target="_blank">RSS</a>

Namespace Error

Since the last update when trying to install a script by pasting the code into violentmonkey I and others are getting namespace errors.

image

Make source of the website private

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` is incorrect

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.