Greasy Fork

Greasy Fork is available in English.

Google Drive Link Fix

Replaces google drive links without the view?usp=sharing to get rid of blocked page

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         Google Drive Link Fix
// @namespace    http://tampermonkey.net/
// @version      1.0.0
// @description  Replaces google drive links without the view?usp=sharing to get rid of blocked page
// @author       Butter
// @match        *://privatebin.rinuploads.org/*
// @icon         data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant        none
// @license MIT
// ==/UserScript==

(function () {
  "use strict";

  // Your code here...
  var Text = "cs.rin.ru";
  var fixedList = [];
  document.getElementById("passworddecrypt").value = Text;

  setTimeout(function () {
    document.querySelector('button[type="submit"]').click();
    document.querySelector('button[type="submit"]').click();
  }, 300);

  setTimeout(function () {
    var htmlList = document
      .getElementById("prettyprint")
      .getElementsByTagName("a");

    // When there is a "click"
    // it shows an alert in the browser
    for (let i = 0; i < htmlList.length; i++) {
      var a = document.createElement("a");
      var desiredLink = ("" + htmlList[i] + "").replace("view?usp=sharing", "");
      a.setAttribute("href", desiredLink);
      a.innerHTML = "<h1>" + desiredLink + "</h1>";
      document.getElementById("prettyprint").getElementsByTagName("a")[
        i
      ].innerHTML = a;
    }
  }, 1000);
})();