Devuplads Remove Bloat

show only download button

当前为 2024-01-15 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Devuplads Remove Bloat
  3. // @description show only download button
  4. // @namespace https://greasyfork.org/users/821661
  5. // @match https://devuploads.com/*
  6. // @match https://thecubexguide.com/*
  7. // @match https://djxmaza.in/*
  8. // @match https://dev.miuiflash.com/*
  9. // @run-at document-start
  10. // @grant none
  11. // @version 1.1.7.1
  12. // @author hdyzen
  13. // @license MIT
  14. // ==/UserScript==
  15. (function () {
  16. 'use strict';
  17.  
  18. // Devuploads page
  19. const isDevuploadPage = location.hostname === 'devuploads.com';
  20. let clicked = false;
  21.  
  22. // Styles css
  23. const styleDevuploads = `*,div.mb-xl-5{margin:0!important}*{box-sizing:border-box!important;padding:0!important}h2.text-center.filesof{margin:10px!important}.footer,.navbar{display:none!important}#container>.row,#files_list>.row{gap:10px!important}#container{height:100vh!important;display:flex!important;justify-content:center!important;align-items:center!important;flex-direction:column!important}#files_list>.row>div{margin:0!important;max-width:unset!important;flex-grow:1!important}#files_paging{margin-top:10px!important}body{background-color:#1d2025!important}#files_paging.paging,#folders_paging,div.bg-white,.form-control{background:#3a414b!important;color:#b0c5e3!important}div.border-bottom{border-color:#576271!important}@media (orientation:portrait){body{padding:10px!important}}`;
  24. const styleRedirects = `body,html{overflow:hidden!important;background:#1d2025!important}.download-btn > button, #dlbtn, #downbtn, a.btn.btn-primary.btn-block.mb-4{max-width: 500px!important;}.download-btn,#downloadNow{position: fixed!important;top: 0!important;left: 0!important;z-index: 2147483640!important;max-width: 100%!important;width: 100%!important;height: 100%!important;display: flex!important;justify-content: center!important;align-items: center!important;flex-direction: column!important;background-color: #1d2025!important;}`;
  25.  
  26. // Add styles
  27. function addStyle() {
  28. const style = document.createElement('style');
  29.  
  30. style.innerHTML = isDevuploadPage ? styleDevuploads : styleRedirects;
  31.  
  32. document.documentElement.append(style);
  33. }
  34. addStyle();
  35.  
  36. // Try click call
  37. if (!isDevuploadPage) tryClick();
  38. })();