// ==UserScript== // @name cutt.ly compact layout // @name:zh-TW cutt.ly 精簡頁面結果 // @name:zh-CN cutt.ly 精简页面结果 // @description When shortening with [Cutt URL] button, delete every thing in the result page except the shortened URL. (this script must be used with the cutt.ly shorten button. https://greasyfork.org/scripts/401540-cutt-ly-url-shorten-button) // @description:zh-TW 使用[Cutt URL]按钮進行縮址時,頁面上只保留目前的縮址 (本腳本須搭配 cutt.ly 縮址按鈕一起服用 https://greasyfork.org/scripts/401540-cutt-ly-url-shorten-button) // @description:zh-CN 使用[Cutt URL]按钮进行缩址时,页面上只保留目前的缩址 (本脚本须搭配 cutt.ly 缩址按钮一起服用 https://greasyfork.org/scripts/401540-cutt-ly-url-shorten-button) // @namespace https://greasyfork.org/zh-TW/users/393133-evan-tseng // @version 0.1 // @author Evan Tseng // @run-at document-end // @match *://cutt.ly/* // @grant none // @downloadURL none // ==/UserScript== (function() { 'use strict'; const urlParams = new URLSearchParams(window.location.search), shortenit = urlParams.get('shortenit'), windowWidth = 250, windowHeight = 77; // 精簡頁面 const compactPage = function(){ var shortURL = document.querySelector("#results #sortable li:first-child #link").innerText; document.body.innerHTML='