Exclude data-field from entries to add to data-fields

This commit is contained in:
DataHoarder 2022-04-24 21:04:22 +02:00
parent 8bb4599929
commit 859e81ad95
Signed by: DataHoarder
SSH key fingerprint: SHA256:OLTRf6Fl87G52SiR7sWLGNzlJt4WOX+tfI2yxo0z7xk

View file

@ -1,7 +1,7 @@
// ==UserScript==
// @name AnimeBytes Mediainfo Improvements
// @author WeebDataHoarder
// @version 1.27.3
// @version 1.27.4
// @downloadURL https://git.gammaspectra.live/WeebDataHoarder/userscripts/raw/branch/master/AnimeBytes/ab-mediainfo.user.js
// @updateURL https://git.gammaspectra.live/WeebDataHoarder/userscripts/raw/branch/master/AnimeBytes/ab-mediainfo.user.js
// @description AnimeBytes Mediainfo Improvements. Adds several listing and matching releases against mediainfo utilities. MIT license
@ -1946,7 +1946,7 @@ if(
a.querySelectorAll("span.userscript-highlight").forEach((e) => {
e.getAttributeNames().forEach((name) => {
if(name.match(/^data-/) !== null){
if(name.match(/^data-/) !== null && name !== "data-field"){
let attr = e.getAttribute(name);
a.setAttribute(name, e.getAttribute(name));
fields.push(attr);