Skip to content

Instantly share code, notes, and snippets.

@botmtl
Last active November 9, 2017 01:21
Show Gist options
  • Save botmtl/a529785a665b134dadbbd961ee64a5ef to your computer and use it in GitHub Desktop.
Save botmtl/a529785a665b134dadbbd961ee64a5ef to your computer and use it in GitHub Desktop.
// ==UserScript==
// @author botmtl
// @namespace https://github.com/botmtl
// @name Auto-Copy-Links
// @version 0.04
// @description Auto-Copy-Links
// @icon https://forum.mobilism.org/favicon.ico
// @downloadurl https://gist.github.com/botmtl/a529785a665b134dadbbd961ee64a5ef/raw/32f53284df41a4ae75aab2a3aef08de588f34423/Mobilism-AutoCopyUrl.user.js
// @match https://forum.mobilism.org/*
// @grant GM_setClipboard
// @grant GM_addStyle
// @run-at document-end
// ==/UserScript==
(function() {
'use strict';
var postlinks = document.getElementsByClassName('topictitle');
var t="";
for(var i=0;i<postlinks.length;i++){
t+= postlinks[i].href + "&view=print\r\n";
}
GM_setClipboard(t);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment