Exclude data-field from entries to add to data-fields
This commit is contained in:
parent
8bb4599929
commit
859e81ad95
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue