Skip to content

Instantly share code, notes, and snippets.

@botmtl
Last active October 28, 2017 03:01
Show Gist options
  • Save botmtl/f390e6b3d26cdc448bc0bb94f6556972 to your computer and use it in GitHub Desktop.
Save botmtl/f390e6b3d26cdc448bc0bb94f6556972 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @author botmtl
// @namespace https://github.com/botmtl
// @name Auto-Copy-Links EbookHunter
// @version 0.01
// @description Auto-Copy-Links EbookHunter
// @icon https://www.ebookhunter.net/wp-content/uploads/2017/06/logo2.png
// @match https://www.ebookhunter.net/*
// @grant GM_setClipboard
// @run-at document-end
// ==/UserScript==
var postlinks = document.getElementsByClassName("post-title");
var t="";
for(var i=0;i<postlinks.length;i++){ t+= postlinks[i].innerHTML + "\n "; }
GM_setClipboard(t);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment