Skip to content

Commit a55575a

Browse files
committed
Improve consistency of whitespace in userscript headers.
1 parent 026489f commit a55575a

22 files changed

+420
-421
lines changed
+26-26
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
11
// ==UserScript==
2-
// @name Bigger Github Repo Network Graph
3-
// @namespace https://github.com/StaticPH
4-
// @match http*://github.com/*/*/network
5-
// include /^https?:\/\/github\.com\/.*\/.*\/network/
6-
// @version 1.0
7-
// @createdAt 4/12/2020
8-
// @author StaticPH
9-
// @description Makes the timeline on the Network page of Github repositories utilize more of that available whitespace on the sides. Still can't seem to make it use everything on the right though...
10-
// @license MIT
11-
// @updateURL https://raw.githubusercontent.com/StaticPH/Userscripts/master/bigger_github_network_graph.user.js
12-
// @downloadURL https://raw.githubusercontent.com/StaticPH/Userscripts/master/bigger_github_network_graph.user.js
13-
// @homepageURL https://github.com/StaticPH/UserScripts
14-
// @supportURL https://github.com/StaticPH/UserScripts/issues
15-
// @icon https://github.githubassets.com/pinned-octocat.svg
16-
// @grant GM.addStyle
17-
// @grant GM_addStyle
2+
// @name Bigger Github Repo Network Graph
3+
// @namespace https://github.com/StaticPH
4+
// @match http*://github.com/*/*/network
5+
// include /^https?:\/\/github\.com\/.*\/.*\/network/
6+
// @version 1.0
7+
// @createdAt 4/12/2020
8+
// @author StaticPH
9+
// @description Makes the timeline on the Network page of Github repositories utilize more of that available whitespace on the sides. Still can't seem to make it use everything on the right though...
10+
// @license MIT
11+
// @updateURL https://raw.githubusercontent.com/StaticPH/Userscripts/master/bigger_github_network_graph.user.js
12+
// @downloadURL https://raw.githubusercontent.com/StaticPH/Userscripts/master/bigger_github_network_graph.user.js
13+
// @homepageURL https://github.com/StaticPH/UserScripts
14+
// @supportURL https://github.com/StaticPH/UserScripts/issues
15+
// @icon https://github.githubassets.com/pinned-octocat.svg
16+
// @grant GM.addStyle
17+
// @grant GM_addStyle
1818
// ==/UserScript==
1919

2020
(function(){
2121
'use strict';
22-
23-
// console.debug('Un-centering timeline.');
22+
23+
// console.debug('Un-centering timeline.');
2424
GM.addStyle(`
25-
.new-discussion-timeline {
26-
margin-right: unset;
25+
.new-discussion-timeline {
26+
margin-right: unset;
2727
margin-left: unset;
2828
width: auto;
2929
}
30-
.container-lg {
30+
.container-lg {
3131
max-width: none !important;
3232
margin-left: 0px !important;
3333
}
@@ -36,7 +36,7 @@
3636
}
3737
`);
3838
// console.debug('Timeline no longer centered.');
39-
39+
4040
})();
4141

4242

@@ -53,9 +53,9 @@
5353
remove class 'overflow-hidden'
5454
add attribute 'overflow-x: scroll'
5555
add attribute 'resize: both' */
56-
57-
58-
56+
57+
58+
5959
/* qp=Array.from(document.querySelectorAll('.container-lg')[2].computedStyleMap()).slice(0,10).filterInPlace((e)=>
6060
e[1] == 'auto'
6161
)
@@ -70,4 +70,4 @@ Array.from(document.querySelectorAll('.container-lg')[2].computedStyleMap()).fin
7070
console.log('e[0]='+e[0]+'\te[1]='+e[1]);
7171
return e[1]=='auto'
7272
})
73-
*/
73+
*/

bypass_blogspots_blogger_iframe.user.js

+18-18
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
// ==UserScript==
2-
// @name Bypass Blogspot's Blogger IFrame
3-
// @namespace https://github.com/StaticPH
4-
// @match *://blogspot.com/*
5-
// @match *://*.blogspot.com/*
6-
// @match *://blogger.com/*
7-
// @match *://*.blogger.com/*
8-
// @version 1.1
9-
// @createdAt 6/2/2021
10-
// @author StaticPH
11-
// @description Unhide the page body and hide obstructing iframes on some blogspot pages, which use those methods for reasons like discouraging ad blocking.
12-
// @license MIT
13-
// @updateURL https://raw.githubusercontent.com/StaticPH/Userscripts/master/bypass_blogspots_blogger_iframe.user.js
14-
// @downloadURL https://raw.githubusercontent.com/StaticPH/Userscripts/master/bypass_blogspots_blogger_iframe.user.js
15-
// @homepageURL https://github.com/StaticPH/UserScripts
16-
// @supportURL https://github.com/StaticPH/UserScripts/issues
17-
// @icon https://upload.wikimedia.org/wikipedia/commons/thumb/3/31/Blogger.svg/1200px-Blogger.svg.png
18-
// @grant none
19-
// @run-at
2+
// @name Bypass Blogspot's Blogger IFrame
3+
// @namespace https://github.com/StaticPH
4+
// @match *://blogspot.com/*
5+
// @match *://*.blogspot.com/*
6+
// @match *://blogger.com/*
7+
// @match *://*.blogger.com/*
8+
// @version 1.1
9+
// @createdAt 6/2/2021
10+
// @author StaticPH
11+
// @description Unhide the page body and hide obstructing iframes on some blogspot pages, which use those methods for reasons like discouraging ad blocking.
12+
// @license MIT
13+
// @updateURL https://raw.githubusercontent.com/StaticPH/Userscripts/master/bypass_blogspots_blogger_iframe.user.js
14+
// @downloadURL https://raw.githubusercontent.com/StaticPH/Userscripts/master/bypass_blogspots_blogger_iframe.user.js
15+
// @homepageURL https://github.com/StaticPH/UserScripts
16+
// @supportURL https://github.com/StaticPH/UserScripts/issues
17+
// @icon https://upload.wikimedia.org/wikipedia/commons/thumb/3/31/Blogger.svg/1200px-Blogger.svg.png
18+
// @grant none
19+
// @run-at
2020
// ==/UserScript==
2121

2222
(function(){

centered_gmail_toast_notifications.user.js

+16-16
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
// ==UserScript==
2-
// @name Centered Gmail Toast Notifications
3-
// @namespace https://github.com/StaticPH
4-
// @match https://mail.google.com/mail/*
5-
// @version 1.0
6-
// @createdAt 6/19/2020
7-
// @author StaticPH
8-
// @description Do you hate that Gmail shows a toast notification that blocks functional regions of the UI after you do something to any email? Me too!
9-
// @description This little change should help mitigate the problem.
10-
// @license MIT
11-
// @updateURL https://raw.githubusercontent.com/StaticPH/Userscripts/master/centered_gmail_toast_notifications.user.js
12-
// @downloadURL https://raw.githubusercontent.com/StaticPH/Userscripts/master/centered_gmail_toast_notifications.user.js
13-
// @homepageURL https://github.com/StaticPH/UserScripts
14-
// @supportURL https://github.com/StaticPH/UserScripts/issues
15-
// @icon https://upload.wikimedia.org/wikipedia/commons/a/ab/Gmail_Icon.svg
16-
// @grant GM_addStyle
17-
// @run-at document-idle
2+
// @name Centered Gmail Toast Notifications
3+
// @namespace https://github.com/StaticPH
4+
// @match https://mail.google.com/mail/*
5+
// @version 1.0
6+
// @createdAt 6/19/2020
7+
// @author StaticPH
8+
// @description Do you hate that Gmail shows a toast notification that blocks functional regions of the UI after you do something to any email? Me too!
9+
// @description This little change should help mitigate the problem.
10+
// @license MIT
11+
// @updateURL https://raw.githubusercontent.com/StaticPH/Userscripts/master/centered_gmail_toast_notifications.user.js
12+
// @downloadURL https://raw.githubusercontent.com/StaticPH/Userscripts/master/centered_gmail_toast_notifications.user.js
13+
// @homepageURL https://github.com/StaticPH/UserScripts
14+
// @supportURL https://github.com/StaticPH/UserScripts/issues
15+
// @icon https://upload.wikimedia.org/wikipedia/commons/a/ab/Gmail_Icon.svg
16+
// @grant GM_addStyle
17+
// @run-at document-idle
1818
// ==/UserScript==
1919

2020
GM_addStyle(`

correct_google_form_correctness.user.js

+16-16
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
// ==UserScript==
2-
// @name Correct Google Form Correctness
3-
// @namespace https://github.com/StaticPH
4-
// @match https://docs.google.com/forms/*
5-
// @version 1.0
6-
// @createdAt 11/9/2021, 9:55:12 AM
7-
// @author StaticPH
8-
// @description Fields manually marked correct should appear no differently from fields that exactly matched the preset correct answer.
9-
// @license MIT
10-
// @updateURL https://raw.githubusercontent.com/StaticPH/Userscripts/master/correct_google_form_correctness.user.js
11-
// @downloadURL https://raw.githubusercontent.com/StaticPH/Userscripts/master/correct_google_form_correctness.user.js
12-
// @homepageURL https://github.com/StaticPH/UserScripts
13-
// @supportURL https://github.com/StaticPH/UserScripts/issues
14-
// @icon https://ssl.gstatic.com/docs/spreadsheets/forms/favicon_qp2.png
15-
// @grant none
2+
// @name Correct Google Form Correctness
3+
// @namespace https://github.com/StaticPH
4+
// @match https://docs.google.com/forms/*
5+
// @version 1.0
6+
// @createdAt 11/9/2021, 9:55:12 AM
7+
// @author StaticPH
8+
// @description Fields manually marked correct should appear no differently from fields that exactly matched the preset correct answer.
9+
// @license MIT
10+
// @updateURL https://raw.githubusercontent.com/StaticPH/Userscripts/master/correct_google_form_correctness.user.js
11+
// @downloadURL https://raw.githubusercontent.com/StaticPH/Userscripts/master/correct_google_form_correctness.user.js
12+
// @homepageURL https://github.com/StaticPH/UserScripts
13+
// @supportURL https://github.com/StaticPH/UserScripts/issues
14+
// @icon https://ssl.gstatic.com/docs/spreadsheets/forms/favicon_qp2.png
15+
// @grant none
1616
// @noframes
17-
// @run-at document-end
17+
// @run-at document-end
1818
// ==/UserScript==
1919

2020
(function(){
@@ -27,7 +27,7 @@
2727
let iconGroupDiv = correctnessIconDiv.querySelector(`.${iconPrefix}El`);
2828

2929
correctnessIconDiv.setAttribute(
30-
'aria-label',
30+
'aria-label',
3131
correctnessIconDiv.getAttribute('aria-label').replace('Incorrect', 'Correct')
3232
);
3333

cratesio_description_in_title.user.js

+20-20
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
// ==UserScript==
2-
// @name Crates.io Description In Title
3-
// @namespace https://github.com/StaticPH
4-
// @include /^https?:\/\/(www\.)?crates\.io\/crates\/[^/]+(\/)?$/
5-
// @include /^https?:\/\/(www\.)?crates\.io\/crates\/[^/]+\/[0-9.]+(\/)?$/
6-
// @include /^https?:\/\/(www\.)?crates\.io\/crates\/[^/]+?\/versions(\/|\?page=[0-9]+)?$/
7-
// @include /^https?:\/\/(www\.)?crates\.io\/crates\/[^/]+?\/(reverse_)?dependencies(\/|\?page=[0-9]+)?$/
8-
// @include /^https?:\/\/(www\.)?crates\.io\/crates\/[^/]+?\/[0-9.]+\/dependencies(\/|\?page=[0-9]+)?$/
9-
// @version 1.1
10-
// @createdAt 3/16/2021
11-
// @author StaticPH
12-
// @description Replace the unhelpful part of the tab title on a crate.io crate's page with the short description of the crate, if one is provided. Indicates subpage when not on the Readme.
13-
// @description Convenient for bookmarking and tab-saving extensions, as crate's pages on crates.io don't have particularly informative titles by default.
14-
// @license MIT
15-
// @updateURL https://raw.githubusercontent.com/StaticPH/Userscripts/master/cratesio_description_in_title.user.js
16-
// @downloadURL https://raw.githubusercontent.com/StaticPH/Userscripts/master/cratesio_description_in_title.user.js
17-
// @homepageURL https://github.com/StaticPH/UserScripts
18-
// @supportURL https://github.com/StaticPH/UserScripts/issues
19-
// @icon https://crates.io/favicon.ico
20-
// @grant none
21-
// @run-at document-idle
2+
// @name Crates.io Description In Title
3+
// @namespace https://github.com/StaticPH
4+
// @include /^https?:\/\/(www\.)?crates\.io\/crates\/[^/]+(\/)?$/
5+
// @include /^https?:\/\/(www\.)?crates\.io\/crates\/[^/]+\/[0-9.]+(\/)?$/
6+
// @include /^https?:\/\/(www\.)?crates\.io\/crates\/[^/]+?\/versions(\/|\?page=[0-9]+)?$/
7+
// @include /^https?:\/\/(www\.)?crates\.io\/crates\/[^/]+?\/(reverse_)?dependencies(\/|\?page=[0-9]+)?$/
8+
// @include /^https?:\/\/(www\.)?crates\.io\/crates\/[^/]+?\/[0-9.]+\/dependencies(\/|\?page=[0-9]+)?$/
9+
// @version 1.1
10+
// @createdAt 3/16/2021
11+
// @author StaticPH
12+
// @description Replace the unhelpful part of the tab title on a crate.io crate's page with the short description of the crate, if one is provided. Indicates subpage when not on the Readme.
13+
// @description Convenient for bookmarking and tab-saving extensions, as crate's pages on crates.io don't have particularly informative titles by default.
14+
// @license MIT
15+
// @updateURL https://raw.githubusercontent.com/StaticPH/Userscripts/master/cratesio_description_in_title.user.js
16+
// @downloadURL https://raw.githubusercontent.com/StaticPH/Userscripts/master/cratesio_description_in_title.user.js
17+
// @homepageURL https://github.com/StaticPH/UserScripts
18+
// @supportURL https://github.com/StaticPH/UserScripts/issues
19+
// @icon https://crates.io/favicon.ico
20+
// @grant none
21+
// @run-at document-idle
2222
// ==/UserScript==
2323

2424
(function(){

fix_youtube_player_bottom_gradient.user.js

+17-17
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
// ==UserScript==
2-
// @name Fix Youtube Player Bottom Gradient
3-
// @namespace https://github.com/StaticPH
4-
// @include /^https?://(www\.)?youtube\.com/watch/.*/
5-
// @include /^https?:\/\/(www\.)?youtube\.com\/watch\?v=.*/
6-
// @version 1.0
7-
// @createdAt 2/26/2021
8-
// @author StaticPH
9-
// @description This "fixes" the excessively large bottom gradient area that sometimes appears on the youtube video player when the mouse cursor is within the player frame. Only observed in Vivaldi so far.
10-
// @license MIT
11-
// @updateURL https://raw.githubusercontent.com/StaticPH/Userscripts/master/fix_youtube_player_bottom_gradient.user.js
12-
// @downloadURL https://raw.githubusercontent.com/StaticPH/Userscripts/master/fix_youtube_player_bottom_gradient.user.js
13-
// @homepageURL https://github.com/StaticPH/UserScripts
14-
// @supportURL https://github.com/StaticPH/UserScripts/issues
15-
// @icon https://upload.wikimedia.org/wikipedia/commons/thumb/0/09/YouTube_full-color_icon_%282017%29.svg/1280px-YouTube_full-color_icon_%282017%29.svg.png
16-
// @grant GM.addStyle
17-
// @grant GM_addStyle
18-
// @run-at document-idle
2+
// @name Fix Youtube Player Bottom Gradient
3+
// @namespace https://github.com/StaticPH
4+
// @include /^https?://(www\.)?youtube\.com/watch/.*/
5+
// @include /^https?:\/\/(www\.)?youtube\.com\/watch\?v=.*/
6+
// @version 1.0
7+
// @createdAt 2/26/2021
8+
// @author StaticPH
9+
// @description This "fixes" the excessively large bottom gradient area that sometimes appears on the youtube video player when the mouse cursor is within the player frame. Only observed in Vivaldi so far.
10+
// @license MIT
11+
// @updateURL https://raw.githubusercontent.com/StaticPH/Userscripts/master/fix_youtube_player_bottom_gradient.user.js
12+
// @downloadURL https://raw.githubusercontent.com/StaticPH/Userscripts/master/fix_youtube_player_bottom_gradient.user.js
13+
// @homepageURL https://github.com/StaticPH/UserScripts
14+
// @supportURL https://github.com/StaticPH/UserScripts/issues
15+
// @icon https://upload.wikimedia.org/wikipedia/commons/thumb/0/09/YouTube_full-color_icon_%282017%29.svg/1280px-YouTube_full-color_icon_%282017%29.svg.png
16+
// @grant GM.addStyle
17+
// @grant GM_addStyle
18+
// @run-at document-idle
1919
// ==/UserScript==
2020

2121
(function(){

foxaholic_fixes.user.js

+21-21
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
// ==UserScript==
2-
// @name Foxaholic Fixes
3-
// @namespace https://github.com/StaticPH
4-
// @match https://www.foxaholic.com/*/*/*/
5-
// @match https://www.foxaholic.com/*/*/
6-
// @match https://www.foxaholic.com/*/
7-
// @match https://18.foxaholic.com/*/*/*/
8-
// @match https://18.foxaholic.com/*/*/
9-
// @match https://18.foxaholic.com/*/
10-
// @version 1.0
11-
// @createdAt 6/2/2021
12-
// @author StaticPH
13-
// @description Fix Foxaholic's deliberate breaking of context menus, keypresses, and text selection
14-
// @license MIT
15-
// @updateURL https://raw.githubusercontent.com/StaticPH/Userscripts/master/foxaholic_fixes.user.js
16-
// @downloadURL https://raw.githubusercontent.com/StaticPH/Userscripts/master/foxaholic_fixes.user.js
17-
// @homepageURL https://github.com/StaticPH/UserScripts
18-
// @supportURL https://github.com/StaticPH/UserScripts/issues
19-
// @icon https://www.foxaholic.com/wp-content/uploads/2019/12/cropped-foxaholic-logo-192x192.png
20-
// @grant none
21-
// @run-at
2+
// @name Foxaholic Fixes
3+
// @namespace https://github.com/StaticPH
4+
// @match https://www.foxaholic.com/*/*/*/
5+
// @match https://www.foxaholic.com/*/*/
6+
// @match https://www.foxaholic.com/*/
7+
// @match https://18.foxaholic.com/*/*/*/
8+
// @match https://18.foxaholic.com/*/*/
9+
// @match https://18.foxaholic.com/*/
10+
// @version 1.0
11+
// @createdAt 6/2/2021
12+
// @author StaticPH
13+
// @description Fix Foxaholic's deliberate breaking of context menus, keypresses, and text selection
14+
// @license MIT
15+
// @updateURL https://raw.githubusercontent.com/StaticPH/Userscripts/master/foxaholic_fixes.user.js
16+
// @downloadURL https://raw.githubusercontent.com/StaticPH/Userscripts/master/foxaholic_fixes.user.js
17+
// @homepageURL https://github.com/StaticPH/UserScripts
18+
// @supportURL https://github.com/StaticPH/UserScripts/issues
19+
// @icon https://www.foxaholic.com/wp-content/uploads/2019/12/cropped-foxaholic-logo-192x192.png
20+
// @grant none
21+
// @run-at
2222
// ==/UserScript==
2323

2424
(function(){
@@ -27,7 +27,7 @@
2727
document.body.removeAttribute('oncontextmenu');
2828
document.body.removeAttribute('onselectstart');
2929
document.body.removeAttribute('onkeydown');
30-
30+
3131
// Just some cleanup
3232
document.querySelectorAll('.foxaholic-publift-desk_footer_sticky, [data-fuse]').forEach(ele=>ele.remove());
3333

github_notification_page_tweaks.user.js

+15-15
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
// ==UserScript==
2-
// @name GitHub Notification Page Tweaks
3-
// @namespace https://github.com/StaticPH
4-
// @match https://github.com/notifications*
5-
// @version 1.1
6-
// @createdAt 10/22/2020
7-
// @author StaticPH
8-
// @description Why does GitHub's beta notifications inbox use a "More" dropdown when there's more than enough space for the 2 elements within?
9-
// @description I don't know, and I dislike having to open a dropdown just to mark something as "read", so I did something about it.
10-
// @license MIT
11-
// @updateURL https://raw.githubusercontent.com/StaticPH/Userscripts/master/github_notification_page_tweaks.user.js
12-
// @downloadURL https://raw.githubusercontent.com/StaticPH/Userscripts/master/github_notification_page_tweaks.user.js
13-
// @homepageURL https://github.com/StaticPH/UserScripts
14-
// @supportURL https://github.com/StaticPH/UserScripts/issues
15-
// @icon https://github.githubassets.com/pinned-octocat.svg
16-
// @run-at document-idle
2+
// @name GitHub Notification Page Tweaks
3+
// @namespace https://github.com/StaticPH
4+
// @match https://github.com/notifications*
5+
// @version 1.1
6+
// @createdAt 10/22/2020
7+
// @author StaticPH
8+
// @description Why does GitHub's beta notifications inbox use a "More" dropdown when there's more than enough space for the 2 elements within?
9+
// @description I don't know, and I dislike having to open a dropdown just to mark something as "read", so I did something about it.
10+
// @license MIT
11+
// @updateURL https://raw.githubusercontent.com/StaticPH/Userscripts/master/github_notification_page_tweaks.user.js
12+
// @downloadURL https://raw.githubusercontent.com/StaticPH/Userscripts/master/github_notification_page_tweaks.user.js
13+
// @homepageURL https://github.com/StaticPH/UserScripts
14+
// @supportURL https://github.com/StaticPH/UserScripts/issues
15+
// @icon https://github.githubassets.com/pinned-octocat.svg
16+
// @run-at document-idle
1717
// ==/UserScript==
1818

1919
(function(){

0 commit comments

Comments
 (0)