Sleazy Fork is available in English.

Jable missav 多行标题

asl

  1. // ==UserScript==
  2. // @name Jable missav 多行标题
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.2
  5. // @description asl
  6. // @author You
  7. // @match https://jable.tv/*/*
  8. // @match https://missav.com/*
  9. // @match https://missav.ws/*
  10. // @match https://missav.ai/*
  11. // @icon https://www.google.com/s2/favicons?sz=64&domain=jable.tv
  12. // @grant GM_addStyle
  13. // @license MIT
  14. // ==/UserScript==
  15.  
  16. (function() {
  17. 'use strict';
  18. function xnode(path) {
  19. let xResults = document.evaluate(
  20. path,
  21. document.body,
  22. null,
  23. XPathResult.ORDERED_NODE_ITERATOR_TYPE,
  24. null
  25. ); // 这是个 xpathResult 对象
  26. let el;
  27. let els = [];
  28. while ((el = xResults.iterateNext())) {
  29. els.push(el);
  30. }
  31. return els;
  32. }
  33. document.querySelectorAll('h6.title > a').forEach( function (nod){
  34. nod.setAttribute('target','_blank')
  35. });
  36. // Your code here...
  37. GM_addStyle(`
  38. .video-img-box .title {
  39. white-space: normal;
  40. }
  41. div.my-2.text-sm.text-nord4.truncate {
  42. white-space: normal;
  43. }
  44. h6>a {
  45. font-size: 20px !important;
  46. color: #dc3545;
  47. }
  48. `);
  49. })();