Code Monkey home page Code Monkey logo

konami-command's Introduction

↑ ↑ ↓ ↓ ← → ← → B A

ARE YOU RAYDEE TO AUGMENT YOUR BORWSING ? (with User JS, user JavaScript, Greasemonkey scripts, userscripts, user scripts, etc.)

A userscript, is a piece of JavaScript code that runs on your PC or mobile and that enhances existing websites, for you. They can display additional information, they can make repetitive tedious tasks more easy, fast and efficient!

It’s like cheat codes for web sites, like the famous KONAMI COMMAND / コナミコマンド !

I encourage you to write your own userscripts for the websites you frequently use but are not completely satisfied with. It’s so powerful and it can make you save so much time in many cases.

In this repo I store my userscripts, mostly for MusicBrainz, but not only.

HOW TO USE USERSCRIPTS

BROWSER USERSCRIPT SUPPORT

First thing you should do is make sure your browser supports a userscripts extension / add‐on. Here is a list where it is possible:

  • Android
    • Kiwi Browser
    • Firefox 68.11.0 (obsolete: security risks)
  • iOS
    • ❌ None
  • Linux and Windows
    • Firefox
    • All Chromium derivates (Vivaldi, Chrome, etc.)
  • Mac OS
    • Safari

As for the extension / add‐on, I advise Violentmonkey, which is the only one to be both multi‐browser and open source. I think on Mac OS with Safari, you may have to use Tampermonkey, which is also nice to use, but not open source.

INSTALLING USERSCRIPTS IN BROWSER

Install my userscripts from this jesus2099/konami-command GitHub repo, directly:

  1. Click on a userscript *.user.js file link to review its description and code
  2. Click on the Raw button to install (on mobile, you must first click on the “…” ellipsis button to see Raw menu item)

Hint: If you install the userscript called INSTALL USER SCRIPT, you will get a direct download/install monkey monkey icon button in front of each userscript file, making them installable in a single click. It works in GitHub, in GitLab and in Bitbucket file listings.

HOW TO CONTRIBUTE

ISSUES

If you encounter a problem, you can check if it is an already known issue (top voted) and you can also upvote issues by clicking the 👍 thumb up icon on the issue description.

Please, add an issue when you want to report any new bugs, with the New issue button.

For information, I have only little available time but here are the bugs or features that we are currently working on.

SUBMIT PATCHES

If you want to fix stuff yourself, please have a look at the short contributing guidelines.


※ Here are some links to help you find more MusicBrainz userscripts:


© 2007.7.18 – 2014.5 jesus2099

© 2014.5.23 – 2023 jesus2099

konami-command's People

Contributors

bricas avatar chirlu avatar djslash avatar dotiful avatar eriklevin avatar freso avatar ibmibmibm avatar jesus2099 avatar kellnerd avatar martii avatar mwiencek avatar ropdebee avatar sciencentistguy avatar wenketel avatar yvanzo 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  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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

konami-command's Issues

Problem adding a release

Using mb. COLLECTION HIGHLIGHTER (2014.0602.0113) and Tampermonkey extension (3.7.48) in Google Chrome for Windows (Version 35.0.1916.114 m).

If I want to add a release to one of my collections (using the right side links on the release page), the script will highlight release +release group (as it should) but also recordings, works, artists, etc. (even if I did not check those to be highlighted when I first loaded my collections using the script.

make EASY_DATE® better experience

  • keep current loose d/m/y|y/m/d date recognition of EASY_DATE (and use it everywhere #19)
  • maybe remove the secret c (copy) date hotkey, or maybe not
  • show two larger (than YYY+) unique date fields and brand them (placeholder) EASY_DATE instead
  • stop hiding genuine YYYY
  • if css possible in the limited AR popup space, show genuine fields
  • use a more visible process (less scary, less black box)
    1. store genuine field values
    2. if 1 or 2 dates match in any EASY_DATE field (where 2 dates means setting both begin and end — maybe this requires that we have only one EASY_DATE field to avoid strange behaviours ?)
      1. make it green
      2. assign detected values in genuine fields
    3. if no match
      1. keep it normal uncoloured
      2. (re‐)set original values in genuine fields

use entity row ID to determine oldest (instead of older edit)

I have compared some stuff and came to the conclusion (maybe wrong ?) that the more little the row ID of an entity is, the older it is.

This would be instantaneous (incredibly huge performance gain) and would not suffer the limitation where some entities created long time ago don’t have any edit history (when they have not been edited at all since a certain point in time).

The drawback that I see, however, is it will be unavailable if MBS decides to hide this row ID completely.

Relationships crash

A change in the entity editor has changed on MBS.
Chirlu helped me, saying that now input fields for URL were only created just before submit.
I have started looking for why they were not created before my script (114c20f).

Copy paste relationships

Instead of my last attempt to queue an AR clonage after a release has been cloned by RELEASE_CLONER, make it an independent feature (it’s two clicks instead of one but it will work).

On all entities that allow relationship seeding (past experiment worked OK on release relationship editor, cf. above), add:

  • A Copy relationships button that would load all current entity’s relationships through Web Service and store them in local storage.
  • Paste relationships button that would open current entity edit page (edit relationships for releases) while seeding it with local storage data.

Release support again

Those (catalogue number, bar code, etc. search links, minc, joshin, cdjournal, amazon, etc.) can be found in former versions of INLINE STUFF, if I remember correctly.

Stuff to restore: c894e76

  • ALL-LINKS
    • %barcode%: Add release barcode searches #558
    • %catnum%/%catnum2%
  • ALL-SHOOK-UP-LINKS (@yvanzo's #244/#488)
    • %barcode% - c82fac6
    • %catnum%/%catnum2%

Open edits shortcuts

Hi, great script, these changes are making a real difference to how easy it is to navigate and edit musicbrainz.

I was wondering if I could make a feature request, I hope it's not an issue.

On the edit page there is a menu as so:

Show relate/merge tools
Show Edit rec. buttons

I was wondering if it would be possible to add another menu item as follows:

Show Open edit buttons

Unfortunately being new to this I am making a lot of mistakes, and cancelling relationships that I later decide are wrong is a real pain right now. It would be great if it the button showed up next to relationships as well as the recordings too.

As you can appreciate it saves clicking through on a relationship/track, waiting on the load, finding the open edits button, and clicking again. It may even help people avoid RSI/carpel tunnel syndrome! :-)

Unable to run script in Chrome

Hey Jesus,

Trying out your JASRAC - MB work importer script. There must be something I'm missing.
I'm using Chrome with Tampermonkey (tried both the stable and beta versions).
I can install easily from Greasy Fork, the script shows as being enabled.
How exactly can I execute and use the script? I don't see any new buttons or options in either the JASRAC work info page or the MB Work editor page.

Appreciate it!

Multi‐source support

The experiment (that didn’t work well) was a drag and drop detected recordings in a table (first col was target, second col was sources) in release merge page.
It would be faster to make a new experiment but either way it would be too much code for nothing when the feature will eventually appear in MBS…
This is why I keep this ticket open for when I have free time (probably never) and if I want a brain challenge (I would be surprised my lazy brain would accept). :)

Map RELEASE_CLONER reled directly to MB release object

  1. redefine reled / reled.add()betterName / betterName.coolName()
  2. give MB’s js release object (from ws.json or page) to that betterName.coolName(mbrelease)

(will allow simple re-use for any further importer needs)

All tracks show additional 30 minutes

I couldn’t reproduce that with same versions as him but fmera has this problem in Firefox 35.0.1, Greasemonkey 2.4.

When the track times display gets changed to milliseconds display, he obtains 30 minutes time too much on both local and remote tracks.

Remove release-tmp

Strange temporary variable leftover in logs and in localStorage (but empty) :

586 release-tmps saved into local storage (jesus2099userjs126380release-tmps)… OK.

Show (common) AcoustID in edit notes

A post‐merge (on Merge recordings edit page) feature request by sbontrager that could also be made pre‐merge info (on release page), additionally.

Hide ratings

Since you added an option to move ratings, could you add one to hide all ratings?

I've done a few things with a custom CSS, but it doesn't work reliably depending on the artists as the number of columns isn't always the same and they have no proper CSS classes :(
Here's my current usercss: https://gist.github.com/pankkake/f2693e917ebbfc06bd7a

Allow negative track number as a start

Right now, you can chose to start to merge tracks on track 1, 2, 3, etc.
However, there are some times when I also want to "go up" instead of "go down"; the solution is to do the same merge on the other release (as going up on one means going down on the other). However this requires more copy/pasting and keeping two tabs open.

I'm not sure how it could be presented on the interface though.

Experimental tracklist up/down feature broken

Going up/down from a track name etc. to the one above/below with the cursor keys doesn’t work. I could fix it by changing the selector on line 174 to div#tracklist (from div.advanced-tracklist), so there may have been a server change.

Please add userChromeJS support

Hello,

if you change the querySelectorAll-string into:

var ujs = document.querySelectorAll("table.files tbody a.js-directory-link[title$='.user.js']:not(.j2gIUS), table.files tbody a.js-directory-link[title$='.uc.js']:not(.j2gIUS), table.files tbody a.js-directory-link[title$='.uc.xul']:not(.j2gIUS)");

even scripts for the firefox extension userChrome.js will be linked.

Append INLINE STUFF to the DOM on demand

Delay inline stuff DOM append if all “hide” (performance gain on big releases).

Also delay retrieve (XHR) if all “hide” ? If so, add a loader.gif in div#idcountzone (save 2 requests per release page, be kind with servers).

Impossible as recording comment display still requires that entity be loaded.
→ see #197 for AcoustID.

Cancel edit templates

Hi,

Another request for your consideration similarly to the last one, regarding trying to make cancelling edits more user-friendly.

I am having to do a cancel many many times, as it is not possible to cancel multiple edits in one go. For example, I have made errors in various performer accreditations on a 60 track album and had to roll many of them back for the same reason, it is very repetitive and interactive, as before causing RSI/CTS.

In lieu of more wholescale improvements to how cancel works I was wondering if it would be possible to configure a template cancel message that can be filled in automatically, eg for when you have to cancel 30+ edits that were all being cancelled because the choir master shouldn't have been attached to non-choir tracks, saving me clicking and pasting that same message all of those times.

I certainly don't think a template is suitable for on edit notes, but on a cancel done what do you think?

Thanks

NG when remote release has more than 10 mediums (post #29 / MBS-3841)

Same problem as in #38.
At first thought, you would have to open all mediums of local release and keep the remote release smaller than 11 mediums.
But if both are more than 10 mediums, I don’t know what to do with the remote release. :/

Maybe wait for additional asynchronous Web Service call (from #48) and then make (tons of?) requests to find each recording’s row ID… (._.?)

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.