Skip to content

Commit 90e0e02

Browse files
committed
added elsvier pdf viewer
1 parent a845711 commit 90e0e02

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// ==UserScript==
2+
// // @name elsvier pdf viewer auto width expand
3+
// // @namespace http://tampermonkey.net/
4+
// // @version 0.1
5+
// // @description try to take over the world!
6+
// // @author wang19891218
7+
// // @match https://reader.elsevier.com/reader/*
8+
// // @icon https://www.google.com/s2/favicons?domain=elsevier.com
9+
// // @grant none
10+
// // ==/UserScript==
11+
12+
(function() {
13+
'use strict';
14+
15+
// Your code here...
16+
window.addEventListener('load', function_fit_to_width, false);
17+
})();
18+
19+
20+
function function_fit_to_width() {
21+
var button = document.getElementById("fit-to-width-button")
22+
button.click()
23+
}

0 commit comments

Comments
 (0)