{"id":17548793,"url":"https://github.com/lslezak/monkey_scripts","last_synced_at":"2025-04-24T00:44:20.010Z","repository":{"id":54015657,"uuid":"95661157","full_name":"lslezak/monkey_scripts","owner":"lslezak","description":"Set of scripts for the Tampermonkey (https://tampermonkey.net/) plugin","archived":false,"fork":false,"pushed_at":"2022-03-01T15:54:27.000Z","size":71,"stargazers_count":8,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-24T00:44:14.197Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lslezak.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-28T11:20:14.000Z","updated_at":"2025-02-26T22:26:56.000Z","dependencies_parsed_at":"2022-08-13T06:01:09.158Z","dependency_job_id":null,"html_url":"https://github.com/lslezak/monkey_scripts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lslezak%2Fmonkey_scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lslezak%2Fmonkey_scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lslezak%2Fmonkey_scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lslezak%2Fmonkey_scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lslezak","download_url":"https://codeload.github.com/lslezak/monkey_scripts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250540951,"owners_count":21447426,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-21T02:44:01.355Z","updated_at":"2025-04-24T00:44:19.990Z","avatar_url":"https://github.com/lslezak.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Monkey Scripts\n\nThis is a set of user scripts for the [Tampermonkey](https://tampermonkey.net/)\nweb browser plugin.\n\n:warning: If you are new to the browser user scripts then read the\n[Userscript Beginners HOWTO](https://openuserjs.org/about/Userscript-Beginners-HOWTO)\ndocument first, at least the [What are the risks?](\nhttps://openuserjs.org/about/Userscript-Beginners-HOWTO#what-are-the-risks-)\nsection.\n\n## Installation\n\n### Browser Plugin\n\n- At first you need to install the plugin into your browser.\n  Go to the https://tampermonkey.net page, select your browser and install it.\n\n- To install the user script simply click the :arrow_down: install link below\n  and confirm the installation in Tampermonkey.\n\n### Bookmarklet\n\nIf you do not want to install any 3rd party plugin into your browser you can use\nthe [bookmarklet](https://en.wikipedia.org/wiki/Bookmarklet) feature.\n\nBut using bookmarklet has some disadvantages:\n\n- The bookmarklet must be started manually on the page\n- The scripts code cannot be updated automatically\n\n#### Installing a Bookmarklet\n\nBookmarklet is actually a page book mark but contains a Javascript code instead\nofthe usual URL.\n\nTo create a bookmarklet create a new book mark in the browser and use\nthe `javascript:` prefix and paste the `*.user.js` file content. You can skip\nthe useless comment at the beginning but you have to include also the\n`(function() {...})();` wrapper around the code body.\n\n#### Using Bookmarklets\n\n- Open the page for which you want to run the bookmarklet\n- Click the bookmarklet book mark to start the script (the browser will\n  use the current page, bookmarklets do not change the displayed page as the\n  usual bookmarks)\n- This works in Chrome and Firefox but might not be supported by all browsers\n\n#### Updating Bookmarklets\n\nAs already mentioned, the bookmarklets must be updated manually, simply select\nto edit the book mark and replace the old content with the new code.\n\n## Links\n\n- The [Greasemonkey Hacks](\n  http://commons.oreilly.com/wiki/index.php/Greasemonkey_Hacks) book contains\n  several examples and good tips for writing you own scripts\n- https://openuserjs.org/ contains a lot of community scripts (but be careful,\n  keep in mind that those scripts have access to your cookies, stored passwords\n  etc... so they can easily steal your passwords or other sensitive data!)\n\n## Available User Scripts\n\n*Note: All scripts have been tested in the Chrome browser but should hopefully\nwork also in the other browsers. But your mileage might vary...*\n\n## Bugzilla\n\nHere are some scripts usable for the (open)SUSE Bugzilla bug tracking system.\n\n#### Bugzilla Redirection\n\n[ :arrow_down: [Install]](\nhttps://github.com/lslezak/monkey_scripts/raw/master/bugzilla_redirect.user.js)\n\nThe (open)SUSE Bugzilla can be accessed using several URLs:\nhttps://bugzilla.suse.com or https://bugzilla.opensuse.org or\nhttps://bugzilla.novell.com.\n\nEach domain requires separate authentication so it is quite annoying if you\nclick a link in an email or IRC chat and you get the \"Access Denied\" pages\nthen you have to login again although you are already logged in in a different\nBugzilla domain. Also the Novell domain uses a different branding so it would\nbe nice to always stick with the same UI.\n\nThis script always redirects you to the bugzilla.suse.com pages\nautomatically without need to rewrite the URL manually.\n\n*Note: The script runs as soon as possible, usually the \"Access Denied\" page is\nnot displayed and bugzilla.suse.com loading starts immediately.*\n\n\n#### Relative Time\n\n[ :arrow_down: [Install]](\nhttps://github.com/lslezak/monkey_scripts/raw/master/bugzilla_relative_time.user.js)\n\n\nBugzilla displays the time stamps for the comments but it is hard to get a quick\noverview how long ago the comments were added. To make reading the time stamps\neasier you can add relative time like \"2 hours ago\" or \"5 months ago\" next to the\nstandard time stamps.\n\n![monkey_bugzilla_relative_time](\nhttps://user-images.githubusercontent.com/907998/28940631-a92f7934-7895-11e7-949b-f1c64138feee.png)\n\n*Note: The script expects either the local time or the UTC time. If you use\na different time zone then the script will not work correctly. You can change\nthe displayed time zone in the bugzilla settings.*\n\n\n#### My Comments\n\n[ :arrow_down: [Install]](\nhttps://github.com/lslezak/monkey_scripts/raw/master/bugzilla_my_comments.user.js)\n\nIf you are reading a bug with a lot of comments it would nice to spot\nyour own comments quickly so you can see when and what have you already\ncommented. This script adds a blue background to all your comments so you\ncan find them quickly when scrolling up and down. The private comments have\nan orange background.\n\n![monkey_bugzilla_my_comments](\nhttps://user-images.githubusercontent.com/907998/28941004-d8b8448c-7896-11e7-9d36-6c1592459eea.png)\n\n\n#### Converting Bugzilla / FATE Numbers to Links\n\n[ :arrow_down: [Install]](\nhttps://github.com/lslezak/monkey_scripts/raw/master/bugzilla_links.user.js)\n\nThis scripts converts Bugzilla and FATE numbers into clickable links.\nThis makes finding the details and the relevant information much easier.\n\nThe links created by the script have dashed underline style to make them\ndifferent than the usual links.\n\n![screenshot_bugzilla_link](https://user-images.githubusercontent.com/907998/30249300-f4aef6de-9639-11e7-9acc-17ffddfa55f1.png)\n\n#### Trello Integration\n\n[ :arrow_down: [Install]](\nhttps://github.com/lslezak/monkey_scripts/raw/master/bugzilla_trello_integration.user.js)\n\nThis script integrates the information from Trello cards directly to SUSE Bugzilla.\nYou can see the relevant Trello cards directly in the bug overview at the top.\n\nThe script searches the YaST Trello boards for the current bug number and\nadditionally scans the bug comments and the URL field for the Trello card links.\nIt displays the card title, the board and list name and the persons assigned\nto that card. (*Hint: see the tooltip if the real name.*)\n\n![bugzilla_trello](https://user-images.githubusercontent.com/907998/30322050-7ce5cf58-97b8-11e7-8ef8-a8b46aaf8639.png)\n\nIf there is no card found then a button for creating a new Trello card is displayed.\n\n![bugzilla_trello_add](https://user-images.githubusercontent.com/907998/30322058-84293a16-97b8-11e7-8d3b-5b3fe01edcfa.png)\n\nAfter clicking it a new card is created, the URL is added to the bug, the assignee\nis changed from `yast2-maintainers` to `yast-internal`, the status is changed from\n`NEW` to `CONFIRMED` and the bug is submitted.\n\nThis basically implementes the functionality of [Martin Vidner's ytrello](\nhttps://github.com/mvidner/ytrello) directly in browser.\n\nBefore start using it, the Trello Developer API Key must be already generated.\nIf you do not have it yet, got to  https://trello.com/app-key and follow the\ninstructions given there. Otherwise, the `Error: Trello connection failed`\nmessage will be displayed.\n\nIn addition, at first, you have to do Trello authorization to get the Trello\napplication token. There is displayed a link to do that, **just make sure the\npopup windows are not blocked by the browser**. You can safely enable them for the\nBugzilla URLs.\n\n---\n\n:warning: This script cannot work as a bookmarklet as it uses some additional\nfunctionality provided by the Tampermonkey plugin. Browsers would normally block\nthe Trello requests because they break the same origin policy.\n\n---\n\n## Jenkins\n\n#### Create Submit Requests Links\n\n[ :arrow_down: [Install]](\nhttps://github.com/lslezak/monkey_scripts/raw/master/jenkins_sr_link.user.js)\n\nConverts the `created request id [number]` text into a clickable link which\npoints to the created submit request. The script takes the API URL into account\nso the link correctly points to the internal or external build service depending\non the API used.\n\n*(Note: it does not work when the text is added to the log when the job is\nrunning, you have to reload the page to restart the script.)*\n\n![jenkins_sr_link](\nhttps://user-images.githubusercontent.com/907998/29870053-f84e1458-8d85-11e7-89ba-68d9ebe671df.png)\n\n#### Enable/Disable YaST Autosubmission\n\n[ :arrow_down: [Install]](\nhttps://github.com/lslezak/monkey_scripts/raw/master/jenkins_change_all_jobs.user.js)\n\nThis script adds `Enable` and `Disable` buttons into the YaST Jenkins pages. These buttons\nglobally enable/disable YaST autosubmission to Factory (in the [public Jenkins](\nhttps://ci.opensuse.org/view/Yast/)) or to the latest SLE (in the [internal Jenkins](\nhttps://ci.suse.de/view/YaST/)) by enabling or disabling all YaST jobs for the\n`master` Git branch.\n\nYou need to be logged in to change the job statuses, see [this internal wiki page](\nhttps://wiki.suse.net/index.php/YaST/jenkins) for more details.\n\n![jenkins_enable_disable_buttons](\nhttps://user-images.githubusercontent.com/907998/70715789-480e2400-1ceb-11ea-90d0-4524fc26d6cb.png)\n\n*Note: The current status of the jobs is read from the displayed table,\nit is recommended to reload the page before changing the jobs if the page\nhas been loaded long time ago.*\n\n---\n\n## Trello\n\n### Better Aging\n\n[ :arrow_down: [Install]](\nhttps://github.com/lslezak/monkey_scripts/raw/master/trello_better_aging.user.js)\n\nYou can enable aging feature in Trello which changes the style of cards which\nhave not been updated for long time. The feature is nice but the look of the old\ncards is a bit ugly, the cards are grayed and worse readable.\n\nThis script just adds a grey left border to the old cards and keeps the original\nstyle so the cards are better readable.\n\n\n\n![better_trello_aging](https://user-images.githubusercontent.com/907998/147091800-abb1af77-ba32-4852-b766-5d1f7b2501be.png)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flslezak%2Fmonkey_scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flslezak%2Fmonkey_scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flslezak%2Fmonkey_scripts/lists"}