Apply special Mozilla Firefox width: fit-content entries that are not standard
This commit is contained in:
parent
7626ebb0a6
commit
d0c76dc243
|
@ -1,7 +1,7 @@
|
|||
// ==UserScript==
|
||||
// @name AnimeBytes Mediainfo Improvements
|
||||
// @author WeebDataHoarder
|
||||
// @version 1.28.0
|
||||
// @version 1.28.1
|
||||
// @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
|
||||
|
@ -1663,8 +1663,6 @@ if(
|
|||
parentTd.insertAdjacentElement("beforebegin", document.createElement("td"));
|
||||
// Source + container + remux | Codec / Resolution / HDR | Audio + Dual + commentary | Text | OtherTags | Icons
|
||||
parentTd.setAttribute("colspan", torrentTableColspan.toString());
|
||||
parentTd.style["width"] = "fit-content";
|
||||
parentTd.style["max-width"] = "80%";
|
||||
|
||||
document.querySelectorAll("table.torrent_table tr.edition_info > td").forEach((e) => {
|
||||
e.setAttribute("colspan", (parseInt(e.getAttribute("colspan")) + torrentTableColspan).toString());
|
||||
|
@ -1691,11 +1689,8 @@ if(
|
|||
});
|
||||
}
|
||||
|
||||
let contentStyle = document.getElementById("content").style;
|
||||
contentStyle["max-width"] = "calc(100% - 50px)";
|
||||
contentStyle["width"] = "fit-content";
|
||||
|
||||
|
||||
GM_addStyle("#content{ width: -moz-fit-content; width: fit-content; max-width: calc(100% - 50px); }");
|
||||
|
||||
GM_addStyle(`
|
||||
@font-face {
|
||||
|
@ -1708,12 +1703,13 @@ if(
|
|||
GM_addStyle(".emoji{ font-family: 'EmojiSymbols'; }");
|
||||
GM_addStyle(".group_torrent .icons { font-weight: normal; font-style: normal; font-size: 16px; text-shadow: 0px 0px 2px #000;}");
|
||||
|
||||
GM_addStyle("#content{ max-width: calc(100% - 50px); width: fit-content; }");
|
||||
GM_addStyle("table.torrent_table { width: fit-content; min-width: calc(950px - 240px); }");
|
||||
GM_addStyle("#content{ max-width: calc(100% - 50px); width: -moz-fit-content; width: fit-content; }");
|
||||
GM_addStyle("table.torrent_table { width: -moz-fit-content; width: fit-content; min-width: calc(950px - 240px); }");
|
||||
GM_addStyle("table.torrent_table tr > td[width*='%'] { width: -moz-fit-content; width: fit-content; max-width: 80%;");
|
||||
|
||||
if(settings.getSetting("script_deliciousCompatMode")){
|
||||
//Fix delicious user scripts
|
||||
GM_addStyle("div.torrent_filter_box { width: fit-content !important; float: none !important; min-width: calc(950px - 240px); }");
|
||||
GM_addStyle("div.torrent_filter_box { width: -moz-fit-content !important; width: fit-content !important; float: none !important; min-width: calc(950px - 240px); }");
|
||||
}
|
||||
|
||||
settings.getSetting("extraStyles").split("\n").forEach((s) => {
|
||||
|
|
Loading…
Reference in a new issue