Introduce single rule entries per line for CSS
This commit is contained in:
parent
859e81ad95
commit
7626ebb0a6
|
@ -1,7 +1,7 @@
|
|||
// ==UserScript==
|
||||
// @name AnimeBytes Mediainfo Improvements
|
||||
// @author WeebDataHoarder
|
||||
// @version 1.27.4
|
||||
// @version 1.28.0
|
||||
// @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
|
||||
|
@ -1446,7 +1446,7 @@ settings.addSetting("showEncodingDetails", "Show Encoding Details", "Display enc
|
|||
settings.addSetting("showAudioDetails", "Show Audio Details", "Display extra audio details such as bit-depth, bitrate.", "bool", false);
|
||||
settings.addSetting("handleAnamorphicVideo", "Handle Anamorphic Video", "Use Display Aspect Ratio information to calculate display resolution.", "bool", true);
|
||||
settings.addSetting("regexpFilter", "RegExp Filter", "Any entry that matches one of these RegExp (without delimiters) will be filtered out. Can enter a different one per line. Empty to disable", "text", "");
|
||||
settings.addSetting("extraStyles", "CSS Styles", "Extra CSS styles to add to Torrent pages. Empty to disable.", "text", "");
|
||||
settings.addSetting("extraStyles", "CSS Styles", "Extra CSS styles to add to Torrent pages. Empty to disable. Enter a single style rule per line.", "text", "");
|
||||
settings.addSetting("script_deliciousCompatMode", "Enable Delicious Compatibility", "Enable workarounds to make output compatible with AnimeBytes Delicious user scripts Bundle", "bool", true);
|
||||
settings.addSetting("script_evaHighlightEmulation", "Enable Eva's torrent highlighter emulation", "Create classes and data tags similar to Eva's torrent highlighter, without breaking this script functions.", "bool", true);
|
||||
settings.addSetting("script_abHighlights2Emulation", "Enable AB Highlights 2 emulation", "Create classes and data tags similar to AB Highlights 2, without breaking this script functions.", "bool", true);
|
||||
|
@ -1716,7 +1716,12 @@ if(
|
|||
GM_addStyle("div.torrent_filter_box { width: fit-content !important; float: none !important; min-width: calc(950px - 240px); }");
|
||||
}
|
||||
|
||||
GM_addStyle(settings.getSetting("extraStyles"));
|
||||
settings.getSetting("extraStyles").split("\n").forEach((s) => {
|
||||
if(s.trim() === ""){
|
||||
return;
|
||||
}
|
||||
GM_addStyle(s);
|
||||
});
|
||||
|
||||
const torrentTableElement = document.querySelector("div#content table.torrent_table");
|
||||
|
||||
|
|
Loading…
Reference in a new issue