// ==UserScript==
// @license MIT
// @name 暴力破解lurl密碼(使用日期)
// @namespace http://tampermonkey.net/
// @version 1.1
// @description try to take over the world!
// @author You
// @match https://lurl.cc/*
// @match https://www.dcard.tw/f/sex/*
// @match https://www.dcard.tw/f/sex
// @icon https://www.google.com/s2/favicons?sz=64&domain=lurl.cc
// @grant none
// @downloadURL none
// ==/UserScript==
/*
1. 密碼破解-自動套入當天上傳日期
2. 影片下載功能-一鍵下載
3. 預設影片名稱-若是從D卡點擊連結,會以文章標題當作檔案名稱
4. 暴力破解-嘗試365天的日期去跑,但其實沒意義因此備注掉了XD
5. 新增下載成功提示
6. 修改播放器-可加速、投放、下載、子母畫面等
7. 在西斯版頁面自動點選"是,已經滿18歲"(設定為等待3.5秒執行)
8. 拿回移動軸(D卡發現你刪掉登入提示,會讓你不能往下滾,超姬芭。)
*/
//----------------------------------------------------------------
function SexBoard(){
// 查找页面上所有的按钮元素
var buttons = document.querySelectorAll('button');
// 检查按钮数量
if (buttons.length == 13) {
// 如果条件符合
ClickOK();
}
function ClickOK(){
var pElements = document.getElementsByTagName('p');
var nextSiblingElement = pElements[1].nextSibling;
// 检查nextSiblingElement是否为元素节点
if (nextSiblingElement.nodeType === 1) { // 1 表示元素节点
// 查找并点击第二个按钮
var buttons = nextSiblingElement.querySelectorAll('button');
if (buttons.length >= 2) {
buttons[1].click();
}
}
}
// 查找所有具有class为__portal的div元素
var portalDivs = document.querySelectorAll('.__portal');
// 遍历找到的div元素并删除它们
portalDivs.forEach(function(div) {
div.remove(); // 从DOM中移除div元素
});
document.body.style.overflow = 'auto';
}
function Newplayer(){
let TureUrl=document.querySelector('source').src
// 取得現有的 video 元素
var existingVideo = document.querySelector('video');
// 創建新的 video 元素
var newVideo = document.createElement('video');
// 設定新 video 元素的屬性和特性
newVideo.src = TureUrl; // 設定新 video 的來源
newVideo.controls = true; // 新 video 加入控制選項
newVideo.autoplay = true; // 如有需要,啟用自動播放
newVideo.width = 640; // 設定新 video 的寬度
newVideo.height = 360; // 設定新 video 的高度
newVideo.preload = 'metadata'; // 設定 preload 屬性為 'metadata'
newVideo.classList.add('vjs-tech'); // 添加 class 屬性
newVideo.setAttribute('data-setup', '{"aspectRatio":"16:9"}'); // 設定 data-setup 屬性
newVideo.id = 'vjs_video_3_html5_api'; // 設定 id 屬性
newVideo.tabIndex = -1; // 設定 tabindex 屬性
newVideo.setAttribute('role', 'application'); // 設定 role 屬性
// 用新的 video 元素替換現有的 video 元素
existingVideo.parentNode.replaceChild(newVideo, existingVideo);
// 获取具有 id 为 vjs_video_3 的 div 元素
var videoContainer = document.getElementById('vjs_video_3');
// 移除 oncontextmenu 和 controlslist 属性
videoContainer.removeAttribute('oncontextmenu');
videoContainer.removeAttribute('controlslist');
// 获取所有具有 class 为 vjs-control-bar 的元素
var controlBars = document.querySelectorAll('.vjs-control-bar');
// 遍历所有匹配的元素并删除它们
controlBars.forEach(function(controlBar) {
controlBar.parentNode.removeChild(controlBar);
});
}
//----------------------------------------------------------------
// 创建 元素来加载 CSS 文件 (toast的CDN)
var linkElement = document.createElement('link');
linkElement.setAttribute('rel', 'stylesheet');
linkElement.setAttribute('type', 'text/css');
linkElement.setAttribute('href', 'https://cdn.jsdelivr.net/npm/toastify-js/src/toastify.min.css');
// 创建