forked from thbangkok/shutterstockKeyword
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ShutterKeyword.user.js
37 lines (28 loc) · 1.04 KB
/
ShutterKeyword.user.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// ==UserScript==
// @name ShutterKeyword
// @namespace
// @version 1.1
// @description Extract the keyword from Shutter Stock Preview Page
// @author Naphong
// @match https://www.shutterstock.com/*image-photo*
// @match https://www.shutterstock.com/*image-vector*
// @match https://www.shutterstock.com/*image-illustration*
// @copyright 2016, Naphong
// @require http://code.jquery.com/jquery-latest.min.js
// @grant none
// ==/UserScript==
/* jshint -W097 */
'use strict';
// =========== PARAMETERS ===========
//===================================
var $j = jQuery.noConflict();
$j(document).ready(function() {
var a = '';
$j.each( $j('.product-page-keywords'), function(i, left) {
$j('a', left).each(function() {
a+=$j(this).text()+', ';
});
});
$j('.product-page-keywords').css({ height: "100px" });
$j('.product-page-keywords').html('<div class="row" style="position: relative;height:150px;width:100%;padding: 10px 10px 10px 30px;">' + a + '</div>');
});