From 3022a5b273897e180e449d4f76b129c7392f7a60 Mon Sep 17 00:00:00 2001 From: SinTan1729 Date: Tue, 30 May 2023 00:08:38 -0500 Subject: [PATCH] change: Moved the userscripts to a different repo --- README.md | 2 +- facebook-switch-to-desktop.user.js | 10 ---------- firefox-local-auto-redirection-fix.user.js | 10 ---------- manjaro-forum-auto-redirect.user.js | 19 ------------------- 4 files changed, 1 insertion(+), 40 deletions(-) delete mode 100644 facebook-switch-to-desktop.user.js delete mode 100644 firefox-local-auto-redirection-fix.user.js delete mode 100644 manjaro-forum-auto-redirect.user.js diff --git a/README.md b/README.md index 6a5e4aa..d0b6b07 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -![Number of scripts](https://img.shields.io/badge/number_of_scripts-37-blue) +![Number of scripts](https://img.shields.io/badge/number_of_scripts-34-blue) # Random Scripts This repository is for random scripts I wrote mostly for personal use. diff --git a/facebook-switch-to-desktop.user.js b/facebook-switch-to-desktop.user.js deleted file mode 100644 index 66cf725..0000000 --- a/facebook-switch-to-desktop.user.js +++ /dev/null @@ -1,10 +0,0 @@ -// ==UserScript== -// @name Facebook Switch to Desktop -// @namespace Facebook -// @match *://m.facebook.com/* -// @grant none -// @version 1.2 -// @author SinTan -// @description 6/21/2020, 10:24:02 PM -// ==/UserScript== -window.location.href = window.location.href.replace("://m.", "://www.") \ No newline at end of file diff --git a/firefox-local-auto-redirection-fix.user.js b/firefox-local-auto-redirection-fix.user.js deleted file mode 100644 index 3767225..0000000 --- a/firefox-local-auto-redirection-fix.user.js +++ /dev/null @@ -1,10 +0,0 @@ -// ==UserScript== -// @name Firefox local auto-redirection fix -// @namespace Local -// @description A script for fixing the auto-redirection defined in local files in firefox -// @match file:///* -// @grant none -// @author SinTan -// @version 1.1 -// ==/UserScript== -window.location.href=document.getElementsByTagName("a")[0].href \ No newline at end of file diff --git a/manjaro-forum-auto-redirect.user.js b/manjaro-forum-auto-redirect.user.js deleted file mode 100644 index a939a9c..0000000 --- a/manjaro-forum-auto-redirect.user.js +++ /dev/null @@ -1,19 +0,0 @@ -// ==UserScript== -// @name Manjaro Forum auto-redirect to old site for missing pages -// @namespace Manjaro Linux Forum -// @match https://forum.manjaro.org/t/* -// @grant none -// @version 1.1 -// @author SinTan -// @description 9/4/2020, 1:36:13 PM -// ==/UserScript== -not_found = document.getElementsByClassName("page-not-found") -if (not_found) { - error_msg = not_found[0].getElementsByClassName("title")[0].innerHTML - if (error_msg == "Oops! That page doesn’t exist or is private.") { - redir_notif = document.createElement("h3") - redir_notif.innerHTML = "(Redirecting to old forum...)" - not_found[0].appendChild(redir_notif) - window.location.href = window.location.href.replace("://forum.", "://archived.forum.") - } -} \ No newline at end of file