Skip to content

Commit

Permalink
new script
Browse files Browse the repository at this point in the history
  • Loading branch information
x94fujo6rpg committed Dec 3, 2020
1 parent c46c628 commit e29d614
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 32 deletions.
70 changes: 38 additions & 32 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ click link to install
**only work in Thumbnail mode**

click button to enable (pervent too many requests)
![](https://i.imgur.com/05KQrh6.png)
![](https://i.imgur.com/P3ZWFR8.png)

#### Features:

Expand Down Expand Up @@ -177,37 +177,40 @@ if you don't want it close, set this value to false
let autoclose = true;
```

## [[mangaoh title reformat]](https://github.com/x94fujo6rpg/SomeTampermonkeyScripts/raw/master/mangaoh_title_reformat.user.js)
reformat date & title in search result
click button to copy
![](https://i.imgur.com/amKQlOX.jpg)

## [[dlsite title reformat]](https://github.com/x94fujo6rpg/SomeTampermonkeyScripts/raw/master/dlsite_title_reformat.user.js)
remove title link / remove excess text / custom title format
automatic convert forbidden characters `<>:"/|?*\` to fullwidth
click button to copy
![](https://i.imgur.com/kdsvTit.jpg)

v0.56: add more settings
script now trigger faster (don't have to wait for the page to fully load)
- v0.56
- add more settings
- script now trigger faster (don't have to wait for the page to fully load)

v0.53: add support to `search result` / `circle` page
this doesn't support custom title because data is incomplete
also grid view is too tight to put more buttons
- v0.53
- add support to `search result` / `circle` page
- this doesn't support custom title because data is incomplete
- also grid view is too tight to put more buttons

v0.51: add copy button for each data
- v0.51
- add copy button for each data

v0.48: fix some issue in getData
- v0.48
- fix some issue in getData

v0.45: rearrange buttons (use less space)
now old buttons only appear when:
original != custom
default_format != original & default_format != custom
- v0.45
- rearrange buttons (use less space)
- now old buttons only appear when:
original != custom
default_format != original & default_format != custom

v0.41: ~~add old button back, edit code to enable / disable~~ (add setting in v0.56)
- v0.38
- now title can be custom to any format you want

v0.38: now can be custom to any format you want
~~chagne separator in code~~ (add setting in v0.56)
## [[mangaoh title reformat]](https://github.com/x94fujo6rpg/SomeTampermonkeyScripts/raw/master/mangaoh_title_reformat.user.js)
reformat date & title in search result
click button to copy
![](https://i.imgur.com/amKQlOX.jpg)

## [[reddit img relink]](https://github.com/x94fujo6rpg/SomeTampermonkeyScripts/raw/master/reddit_img_relink.user.js)
**only work for New UI**
Expand All @@ -216,17 +219,16 @@ show images direct link under title (only resized images)

## [[ph_user_video]](https://github.com/x94fujo6rpg/SomeTampermonkeyScripts/raw/master/ph_user_video.user.js)
pornhub
in video page
replace `user link` to `user video list`, except comment
it will try to go to ```user/videos/public``` first
if it doesn't exist, auto redirect to ```user/videos```
add a button to copy link of current page
- video page
- replace `user link` to `user video list`, except comment
it will try to go to ```user/videos/public``` first
if it doesn't exist, auto redirect to ```user/videos```
- add a button to copy link of current page

in user video list
add checkbox for each video and a textbox on top to select and copy links

make upload time visable
[effect](https://i.imgur.com/lL6sJZX.png)
- user video list
- add checkbox for each video and a textbox on top to select and copy links
- make upload time visable
- [effect](https://i.imgur.com/lL6sJZX.png)

## [[anti-bili-anti-copy]](https://github.com/x94fujo6rpg/SomeTampermonkeyScripts/raw/master/anti-bili-anti-copy.user.js)
remove bilibili article copy protection
Expand All @@ -235,12 +237,16 @@ remove bilibili article copy protection
normalize url in video description
remove miniplayer (still activated when you watch in playlist)

- v0.02 fixed

## [[prts redirector]](https://github.com/x94fujo6rpg/SomeTampermonkeyScripts/raw/master/prts_redirector.user.js)
Arknights Wiki PRTS
auto redirect & replace all link to desktop version

- v0.2
- replace all link too
- v0.2 replace all link too

## [[sharer.pw auto click]](https://github.com/x94fujo6rpg/SomeTampermonkeyScripts/raw/master/sharer-pw_auto_click.user.js)
auto click and redirect to download link immediately

## [[google drive auto click]](https://github.com/x94fujo6rpg/SomeTampermonkeyScripts/raw/master/google_drive_autoclick.user.js)
auto skip & click download
42 changes: 42 additions & 0 deletions google_drive_autoclick.user.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
// ==UserScript==
// @name google drive auto click
// @namespace https://github.com/x94fujo6rpg/SomeTampermonkeyScripts
// @updateURL https://github.com/x94fujo6rpg/SomeTampermonkeyScripts/raw/master/google_drive_autoclick.user.js
// @downloadURL https://github.com/x94fujo6rpg/SomeTampermonkeyScripts/raw/master/google_drive_autoclick.user.js
// @version 0.1
// @description auto skip & click download
// @author x94fujo6
// @match https://drive.google.com/*
// @grant none
// ==/UserScript==

(function () {
'use strict';
document.body.onload = main();

function main() {
let link = window.location.href;
if (link.includes("drive.google.com/file/d/")) {
// https://drive.google.com/file/d/*/view
let id = link.split("/");
id = id[id.length - 2];
window.location.href = `https://drive.google.com/u/0/uc?id=${id}&export=download`;
} else if (link.includes("uc?")) {
if (!link.includes("confirm=")) {
// https://drive.google.com/u/0/uc?id=*&export=download
let id = setInterval(() => clickDL(id), 100);
} else if (link.includes("export=download") && link.includes("confirm=")) {
// https://drive.google.com/u/0/uc?export=download&confirm=*&id=*
let id = setInterval(() => clickDL(id), 100);
}
}
}

function clickDL(id) {
let button = document.getElementById("uc-download-link");
if (button) {
button.click();
clearInterval(id);
}
}
})();

0 comments on commit e29d614

Please sign in to comment.